term.getSize
From ComputerCraft Wiki
Function term.getSize | |
Returns the width and height of the terminal window. | |
Syntax | term.getSize() |
Returns | number 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() |