ConsoleCursor()

Syntax

ConsoleCursor(Height)
Description
Changes the display of the cursor, which is the indicator used to show where the next displayed character will be drawn. This command allows you to change the height of the cursor. By default the cursor is a flashing underline in consoles under the Windows OS. Note that you might need to make the console window fullscreen to see the true effect of this command.

Parameters:
Height - The new height of the cursor indicator. This value can be zero (for an invisible cursor) or range from 1 to 10 for the height of the cursor. Currently, 3 values are available:

1 = Underline cursor (default)
5 = Mid-height cursor
10 = Full-height cursor



Return value:
This command does not return a value.


Example:
If OpenConsole()
    For cursor_height=0 To 10
        ConsoleCursor(cursor_height)
        PrintN("Press return to increase cursor size")
        Input()
    Next
    
    PrintN("Press return to exit")
    Input()
    CloseConsole()
EndIf
End

Supported OS

Windows

<- ConsoleColor() - Console Index - ConsoleLocate() ->