Difference between revisions of "Term.getSize"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
SuicidalSTDz (Talk | contribs) m (Added integer tag) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=term.getSize | |name=term.getSize | ||
− | |returns= | + | |returns=[[int (type)|int]] the width and height of the terminal window. |
|api=term | |api=term | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 20:51, 3 June 2013
Function term.getSize | |
Returns the width and height of the terminal window. | |
Syntax | term.getSize() |
Returns | int 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() |