<?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.restoreCursor</id>
		<title>Window.restoreCursor - 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.restoreCursor"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Window.restoreCursor&amp;action=history"/>
		<updated>2026-07-11T07:17:06Z</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.restoreCursor&amp;diff=7125&amp;oldid=prev</id>
		<title>Apemanzilla: Too many &quot;hence&quot;s</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Window.restoreCursor&amp;diff=7125&amp;oldid=prev"/>
				<updated>2015-07-30T21:20:35Z</updated>
		
		<summary type="html">&lt;p&gt;Too many &amp;quot;hence&amp;quot;s&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:20, 30 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|desc=A function available to window-based [[term (API)|terminal objects]] created via the [[window (API)|window API]], which restores the cursor to that window.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|desc=A function available to window-based [[term (API)|terminal objects]] created via the [[window (API)|window API]], which restores the cursor to that window.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All windows have parent objects, such as other windows, monitors, or the computer's own display. Rendering to a given child object renders via the parent(s), and hence moves said parent's (one single!) cursor around. If a parent has multiple children, you'll &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;hence &lt;/del&gt;find that they'll &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;hence &lt;/del&gt;fight over that cursor - this command can be used to force it back into the window where you require it, without otherwise affecting that window.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All windows have parent objects, such as other windows, monitors, or the computer's own display. Rendering to a given child object renders via the parent(s), and hence moves said parent's (one single!) cursor around. If a parent has multiple children, you'll find that they'll fight over that cursor - this command can be used to force it back into the window where you require it, without otherwise affecting that window.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Most actions that can be requested of a window (eg calling its [[term.write|write]] command, making it [[window.setVisible|visible]], etc) will have the same effect.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Most actions that can be requested of a window (eg calling its [[term.write|write]] command, making it [[window.setVisible|visible]], etc) will have the same effect.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ccraft_wiki-mw_:diff:version:1.11a:oldid:6381:newid:7125 --&gt;
&lt;/table&gt;</summary>
		<author><name>Apemanzilla</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Window.restoreCursor&amp;diff=6381&amp;oldid=prev</id>
		<title>Bomb Bloke: Created page with &quot;{{lowercase}} {{Function |name=window.restoreCursor |args= |returns=None |api=term |addon=ComputerCraft |desc=A function available to window-based [[term (API)|terminal object...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Window.restoreCursor&amp;diff=6381&amp;oldid=prev"/>
				<updated>2014-04-09T14:34:06Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{lowercase}} {{Function |name=window.restoreCursor |args= |returns=None |api=term |addon=ComputerCraft |desc=A function available to window-based [[term (API)|terminal object...&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.restoreCursor&lt;br /&gt;
|args=&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 restores the cursor to that window.&lt;br /&gt;
&lt;br /&gt;
All windows have parent objects, such as other windows, monitors, or the computer's own display. Rendering to a given child object renders via the parent(s), and hence moves said parent's (one single!) cursor around. If a parent has multiple children, you'll hence find that they'll hence fight over that cursor - this command can be used to force it back into the window where you require it, without otherwise affecting that window.&lt;br /&gt;
&lt;br /&gt;
Most actions that can be requested of a window (eg calling its [[term.write|write]] command, making it [[window.setVisible|visible]], etc) will have the same effect.&lt;br /&gt;
&lt;br /&gt;
See also: [[term.setCursorBlink|term.setCursorBlink()]]&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Defines a pair of windows within the current display, each wanting to render the cursor, then switches the control of the cursor between them every couple of seconds (Ctrl + T to exit):&lt;br /&gt;
|code= term.clear()&lt;br /&gt;
 &lt;br /&gt;
 local window1 = window.create(term.current(), 5, 5, 1, 1)&lt;br /&gt;
 window1.setTextColor(colours.white)&lt;br /&gt;
 window1.setCursorBlink(true)&lt;br /&gt;
 &lt;br /&gt;
 local window2 = window.create(term.current(), 10, 5, 1, 1)&lt;br /&gt;
 window2.setTextColor(colours.black)&lt;br /&gt;
 window2.setCursorBlink(true)&lt;br /&gt;
 &lt;br /&gt;
 while true do&lt;br /&gt;
 	window1.restoreCursor()&lt;br /&gt;
 	sleep(2)&lt;br /&gt;
 	&lt;br /&gt;
 	window2.restoreCursor()&lt;br /&gt;
 	sleep(2)&lt;br /&gt;
 end&lt;br /&gt;
|output=When controlled by window1, the cursor will blink brightly to the left; when controlled by window2, the cursor will blink darkly to the right.&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>