DrawConsoleHLine([ch, n])
ch
. By default,
the line is extended until the end of the window. Alternatively, you can use the n
parameter
to tell DrawConsoleHLine()
how many characters should be drawn. Passing 0 in ch
makes
DrawConsoleHLine()
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.