Difference between revisions of "Term.getCursorPos"
From ComputerCraft Wiki
(Fixed grammatical error.) |
(You mean "Destroyed page"?) |
||
| Line 1: | Line 1: | ||
| − | + | {{lowercase}} | |
| + | {{Function | ||
| + | |name=term.getCursorPos | ||
| + | |args=none | ||
| + | |returns=x, y | ||
| + | |api=term | ||
| + | |addon=ComputerCraft | ||
| + | |desc=Returns the location of the cursor on screen. | ||
| + | |examples= | ||
| + | {{Example | ||
| + | |desc=Prints the location of the cursor on screen. | ||
| + | |code=print( term.getCursorPos() ) | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Revision as of 10:17, 4 December 2012
| Returns the location of the cursor on screen. | |
| Syntax | term.getCursorPos(none) |
| Returns | x, y |
| Part of | ComputerCraft |
| API | term |
Examples
| Prints the location of the cursor on screen. | |
| Code |
print( term.getCursorPos() ) |