Difference between revisions of "Term.getCursorPos"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
Line 13: Line 13:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:API_Functions]]

Revision as of 18:40, 28 November 2012


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() )