Name
SetConsoleStyle -- set console style (V10.0)
Synopsis
SetConsoleStyle(style)
Platforms
Linux, macOS, Windows

Function
This function sets the style of the current console window to the one passed in the style parameter. This can be one or more of the following flags:

#CONSOLESTYLE_NORMAL:
Reset text style to default. This cannot be combined with any other styles.
#CONSOLESTYLE_BOLD:
Make text bold.
#CONSOLESTYLE_ITALIC:
Make text italic.
#CONSOLESTYLE_UNDERLINED:
Underline text.
#CONSOLESTYLE_STANDOUT:
Highlight text.
#CONSOLESTYLE_BLINK:
Make text blink.
#CONSOLESTYLE_REVERSE:
Reverse video on text.
#CONSOLESTYLE_DIM:
Half bright effect for text. This is not supported everywhere.
#CONSOLESTYLE_PROTECT:
Protected mode for text. This is not supported everywhere.
#CONSOLESTYLE_INVISIBLE:
Invisible text. This is not supported everywhere.
#CONSOLESTYLE_ALTCHARSET:
Use the alternate character set.

Note that all style flags are bit masks so you can combine multiple styles using the bitwise OR operator (|).

To clear console one or more console styles, use the ClearConsoleStyle() function. See ClearConsoleStyle for details.

You must enable advanced console mode using EnableAdvancedConsole() before you can use this function. See EnableAdvancedConsole for details.

Inputs
style
one or more style flags to set (see above)
Example
EnableAdvancedConsole()
SetConsoleStyle(#CONSOLESTYLE_BOLD|#CONSOLESTYLE_UNDERLINED)
ConsolePrint("Hello World!")
RefreshConsole()
The code above prints the text "Hello World!" in bold and underlined style.

Show TOC