term.getCursorPos

From ComputerCraft Wiki
Revision as of 10:17, 4 December 2012 by Thesbros (Talk | contribs) (You mean "Destroyed page"?)

Jump to: navigation, search


Grid Redstone.png  Function term.getCursorPos
Returns the location of the cursor on screen.
Syntax term.getCursorPos(none)
Returns x, y
Part of ComputerCraft
API term

Examples

Grid paper.png  Example
Prints the location of the cursor on screen.
Code
print( term.getCursorPos() )