window.reposition

window.reposition
Function
Syntax
window.reposition(
  • x : number
  • y : number
  • width? : number
  • height? : number
)

Returns nil
API window
Source CC:Tweaked (source)

Moves and optional resizes a window.

ExampleMove a Window
Move a Window
Code
<nowiki>
local win = window.create(term.current(),1,1,10,10)
win.reposition(5,5)
  </nowiki>
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.