Difference between revisions of "Term.getSize"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
|||
Line 12: | Line 12: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:API_Functions]] |
Revision as of 18:40, 28 November 2012
Function term.getSize | |
Returns the width and height of the terminal window. | |
Syntax | term.getSize() |
Returns | The width and height of the terminal window. |
Part of | ComputerCraft |
API | term |
Examples
Example | |
Sets the cursor position to the edge of the terminal window. | |
Code |
local w, h = term.getSize() |