term.getCursorPos

From ComputerCraft Wiki
Revision as of 14:52, 19 May 2012 by Techzune (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=term.getCursorPos |args=none |returns=x, y |api=term |addon=ComputerCraft |desc=Returns the location of the cursor on screen. |examples= {{Examp...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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() )