window.reposition
From ComputerCraft Wiki
Function window.reposition | |
A function available to window-based terminal objects created via the window API, which moves and / or resizes the window in concern.
If visible, the window will be automatically re-rendered, however the parent terminal object won't be (meaning "ghost" images of the window's previous shape / location may be left behind unless you manually clear them). If shrinking a window will result in some of its contents being cropped from view, then that content will be removed from the window's buffer and will not be restored if you later re-enlarge it. If a new width / height is not specified then the window will retain its previous dimensions. See also: window.getPosition(), term.getSize() | |
Syntax | window.reposition(number xPosition, number yPosition [, number width, number height]) |
Returns | None |
Part of | ComputerCraft |
API | term |