ConsoleLocate()
语法
ConsoleLocate(x, y)概要
Moves the cursor to the given position, in character coordinates. Any text you print after calling this function will start from the specified coordinates.
参数
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)
返回值
无.
Remarks
The console has to be in graphical mode, see EnableGraphicalConsole().
示例
If OpenConsole() EnableGraphicalConsole(1) For i = 0 To 200 ConsoleLocate(Random(79), Random(24)) Print("*") Next ConsoleLocate(30, 10) PrintN("Press return to exit") Input() EndIf
参阅
EnableGraphicalConsole()
已支持操作系统
Windows