< Back

Format-HostText

Sun Jan 19, 2020 5:33 pm

NAME Format-HostText



SYNOPSIS

Format the text with RGB colors and weight.





SYNTAX

Format-HostText [-Message] <String> [[-ForegroundColor] <Int32[]>] [[-BackgroundColor] <Int32[]>] [-Bold]

[<CommonParameters>]





DESCRIPTION

Use the ANSI escape sequence to use the full RGB colors formatting the

text. The foreground and background can be specified as RGB. The font

can be specified as bold





PARAMETERS

-Message <String>

The message to format.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ForegroundColor <Int32[]>

Set the foreground color as RGB.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-BackgroundColor <Int32[]>

Set the background color as RGB.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Bold [<SwitchParameter>]

Show the text in bold font.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS