Name
InsertConsoleChr -- insert console character (V10.0)
Synopsis
InsertConsoleChr(ch)
Platforms
Linux, macOS, Windows

Function
This function inserts the character specified by ch into the current console window at the current cursor position. All characters to the right of the cursor are moved to the right, with the possibility of the rightmost characters on the line being lost. The cursor is not advanced.

The character must be passed as a numeric value, not a string. For normal characters ch simply specifies the Unicode codepoint of the respective character, e.g. 65 for 'A'. The ch argument, however, can also be a special character code composed by the MakeConsoleChr() function. This function allows you to merge text formatting styles into the character code and it also supports special character codes like arrows or border bits. See MakeConsoleChr for details.

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

Inputs
ch
character to insert
Example
EnableAdvancedConsole()
InsertConsoleChr('A')
RefreshConsole()
The code above adds the character 'A' to the console.

Show TOC