Name
DecomposeConsoleChr -- decompose styled character (V10.0)
Synopsis
ch, style, pen = DecomposeConsoleChr(c)
Platforms
Linux, macOS, Windows

Function
This function can be used to extract the individual components of a styled character composed by MakeConsoleChr(). You have to pass the styled character in the c parameter and DecomposeConsoleChr() will return the Unicode codepoint of the character, the styling flags and the pen that should be used to draw the character. See MakeConsoleChr for details.

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

Inputs
c
styled character as composed by MakeConsoleChr()
Results
ch
Unicode codepoint of character
style
console style flags
pen
pen that shall be used to draw the correct

Show TOC