<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/index.php?action=history&amp;feed=atom&amp;title=Window.setVisible</id>
		<title>Window.setVisible - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/index.php?action=history&amp;feed=atom&amp;title=Window.setVisible"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Window.setVisible&amp;action=history"/>
		<updated>2026-07-11T07:16:46Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Window.setVisible&amp;diff=6366&amp;oldid=prev</id>
		<title>Bomb Bloke: Created page with &quot;{{lowercase}} {{Function |name=window.setVisible |args={{type|boolean}} visible |returns=None |api=term |addon=ComputerCraft |desc=A function available to window-based [[term ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Window.setVisible&amp;diff=6366&amp;oldid=prev"/>
				<updated>2014-04-08T10:31:09Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{lowercase}} {{Function |name=window.setVisible |args={{type|boolean}} visible |returns=None |api=term |addon=ComputerCraft |desc=A function available to window-based [[term ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=window.setVisible&lt;br /&gt;
|args={{type|boolean}} visible&lt;br /&gt;
|returns=None&lt;br /&gt;
|api=term&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=A function available to window-based [[term (API)|terminal objects]] created via the [[window (API)|window API]], which toggles the visibility flag of the window in concern.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
You may still alter the content of an invisible window, though the changes will only be displayed when the window is next rendered. If a window's parent is invisible, then that window is also treated as invisible.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Note that toggling visibility of a window to false will NOT &amp;quot;undraw&amp;quot; it; its content will still remain within any parent terminal objects until ''they'' are cleared via other means, as anything rendered in a given window is rendered ''via'' said parents. However, if toggling from false to true, the window will be automatically [[window.redraw|redrawn]] (though whether it'll actually show up on the screen again at that point depends on the visibility of its parents at the time).&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Defines two windows at the top left of the display, then alternates their visibility until terminated (Ctrl + T).&lt;br /&gt;
|code= term.clear()&lt;br /&gt;
 &lt;br /&gt;
 local window1 = window.create(term.current(), 1, 1, 2, 1)&lt;br /&gt;
 local window2 = window.create(term.current(), 1, 1, 2, 1)&lt;br /&gt;
 &lt;br /&gt;
 window1.setVisible(false)&lt;br /&gt;
 window2.setVisible(false)&lt;br /&gt;
 &lt;br /&gt;
 window1.write(&amp;quot;):&amp;quot;)&lt;br /&gt;
 window2.write(&amp;quot;:)&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 while true do&lt;br /&gt;
 	window2.setVisible(false)&lt;br /&gt;
 	window1.setVisible(true)&lt;br /&gt;
 	&lt;br /&gt;
 	sleep(0.5)&lt;br /&gt;
 	&lt;br /&gt;
 	window1.setVisible(false)&lt;br /&gt;
 	window2.setVisible(true)&lt;br /&gt;
 	&lt;br /&gt;
 	sleep(0.5)&lt;br /&gt;
 end&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:API_Functions]]&lt;/div&gt;</summary>
		<author><name>Bomb Bloke</name></author>	</entry>

	</feed>