window.setVisible

From ComputerCraft
Jump to navigation Jump to search

window.setVisible
Function
Syntax
window.setVisible()
Returns nil
API window
Source CC:Tweaked (source)

Change the visibility of a window.

ExampleExampleHide a Window
Hide a Window
Code
local win = window.create(term.current(),1,1,10,10)
win.write("This Text will disappear in 5 seconds")
sleep(5)
win.setVisible(false)