term.getSize
From ComputerCraft Wiki
Revision as of 18:40, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:APIFunctions)
| 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
| Sets the cursor position to the edge of the terminal window. | |
| Code |
local w, h = term.getSize() |