ConsoleLocate()

Syntax

ConsoleLocate(x, y)
Description
Moves the cursor to the given position, in character co-ordinates. Any text you print after calling this command will start from the specified co-ordinates.

Parameters:
x - The horizontal position in the console to move to (starting from 0)
y - The vertical position in the console to move to (starting from 0)


Return value:
This command does not return a value.


Example:
If OpenConsole()
    RandomSeed(Date())
    
    For i.w=0 To 200
        ConsoleLocate(Random(79), Random(24))
        Print("*")
    Next

    PrintN("Press return to exit")
    Input()
    CloseConsole()
EndIf
End

Supported OS

Windows

<- ConsoleCursor() - Console Index - ConsoleTitle() ->