Name
DrawConsoleVLine -- draw vertical line to console (V10.0)
Synopsis
DrawConsoleVLine([ch, n])
Platforms
Linux, macOS, Windows

Function
This function draws a vertical line using the character code specified in ch. By default, the line is extended until the end of the window. Alternatively, you can use the n parameter to tell DrawConsoleVLine() how many characters should be drawn. Passing 0 in ch makes DrawConsoleVLine() use a default character. The cursor position won't be advanced by this function.

Characters must be passed as numeric values, not as strings. For normal characters this value is simply the Unicode codepoint of the respective character, e.g. 65 for 'A'. You can, however, also pass 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 pieces. See MakeConsoleChr for details.

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

Inputs
ch
optional: character to draw with (defaults to 0)
n
optional: number of characters to draw (defaults to number of rows)

Show TOC