window.getPosition

From ComputerCraft
Jump to: navigation, search

window.getPosition
Function
Syntax
window.getPosition()
Returns number x number y
API window
Source CC:Tweaked (source)

Returns the Position of a Window.

ExampleExampleGet the Position of a Window
Get the Position of a Window and print it.
Code
local win = window.create(term.current(),1,1,10,10)
print(win.getPosition())
Output
1 1