term.getCursorPos
From ComputerCraft Wiki
Function term.getCursorPos | |
Returns the location of the cursor on screen. | |
Syntax | term.getCursorPos() |
Returns | x, y |
Part of | ComputerCraft |
API | term |
Examples
Example | |
Prints the location of the cursor on screen. | |
Code |
local x, y = term.getCursorPos() |