<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://agiwiki.sierrahelp.com//index.php?action=history&amp;feed=atom&amp;title=Text.screen</id>
	<title>Text.screen - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://agiwiki.sierrahelp.com//index.php?action=history&amp;feed=atom&amp;title=Text.screen"/>
	<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Text.screen&amp;action=history"/>
	<updated>2026-09-12T10:51:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>http://agiwiki.sierrahelp.com//index.php?title=Text.screen&amp;diff=13138&amp;oldid=prev</id>
		<title>Andrew Korson: Created page with &quot;The &#039;&#039;&#039;text.screen&#039;&#039;&#039; command switches the AGI display to text mode.  == Syntax ==  text.screen();  == Remarks ==  The &#039;&#039;&#039;text.screen&#039;&#039;&#039; command switches AGI to the text dis...&quot;</title>
		<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Text.screen&amp;diff=13138&amp;oldid=prev"/>
		<updated>2019-04-24T11:58:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;#039;&amp;#039;&amp;#039;text.screen&amp;#039;&amp;#039;&amp;#039; command switches the AGI display to text mode.  == Syntax ==  text.screen();  == Remarks ==  The &amp;#039;&amp;#039;&amp;#039;text.screen&amp;#039;&amp;#039;&amp;#039; command switches AGI to the text dis...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;text.screen&amp;#039;&amp;#039;&amp;#039; command switches the AGI display to text mode.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
text.screen();&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;text.screen&amp;#039;&amp;#039;&amp;#039; command switches AGI to the [[text display]] mode. This mode displays text only; no graphics. The text screen uses separate memory, so the graphics screen is not lost when the text mode is active. When the text display is activated, it is cleared to a black background (if the background color is black [value of 0]), or white, if background color is any other value. (See the &amp;#039;&amp;#039;&amp;#039;[[set.text.attribute]]&amp;#039;&amp;#039;&amp;#039; command for a workaround to clear the text screen to other colors).&lt;br /&gt;
&lt;br /&gt;
Use the &amp;#039;&amp;#039;&amp;#039;[[graphics]]&amp;#039;&amp;#039;&amp;#039; command to switch back to the graphics screen after you are done with text mode.&lt;br /&gt;
&lt;br /&gt;
The text mode should only be used to display text on the screen, and not to use menus, show messages with the &amp;#039;&amp;#039;&amp;#039;[[print]]&amp;#039;&amp;#039;&amp;#039; commands, or attempt to manipulate graphics.&lt;br /&gt;
&lt;br /&gt;
Technically, menus can be activated while in text mode, but they do not display properly. Similarly, the print commands will show messages on the text screen except they do not have a border, and do not clear the screen when the player presses a key.&lt;br /&gt;
&lt;br /&gt;
It is possible to allow player input while the text mode is active. However, there are a couple of quirks:&lt;br /&gt;
&lt;br /&gt;
#The input line will always default to the top line when the text mode is first activated. After the player enters some input, the input line will move back to its normal position (as defined in the &amp;#039;&amp;#039;&amp;#039;[[configure.screen]]&amp;#039;&amp;#039;&amp;#039; command).&lt;br /&gt;
#:A workaround to this is to use the &amp;#039;&amp;#039;&amp;#039;[[prevent.input]]&amp;#039;&amp;#039;&amp;#039; command just before switching to text mode, then calling the &amp;#039;&amp;#039;&amp;#039;[[accept.input]]&amp;#039;&amp;#039;&amp;#039; command immediately afterward. This forces the input line to its correct position.&lt;br /&gt;
#When clearing areas on the text screen (via the &amp;#039;&amp;#039;&amp;#039;[[clear.lines]]&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;[[clear.text.rect]]&amp;#039;&amp;#039;&amp;#039; commands) the background color is ALWAYS set to black. The color argument for these commands is ignored in text mode.&lt;br /&gt;
#:The &amp;#039;&amp;#039;&amp;#039;[[clear.text.rect]]&amp;#039;&amp;#039;&amp;#039; topic includes sample code that provides a workaround for this.&lt;br /&gt;
&lt;br /&gt;
== Possible Errors ==&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;agi&amp;quot;&amp;gt;&lt;br /&gt;
prevent.input();  [ disable input prior to switch&lt;br /&gt;
text.screen();    [ switch to text mode&lt;br /&gt;
accept.input();   [ force input line back to proper position&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Technical Information ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
| style=&amp;quot;background-color: #efefef&amp;quot; width=&amp;quot;200&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Required Interpreter Version:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| width=&amp;quot;175&amp;quot; | Available in all AGI versions.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #efefef&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Byte-Code Value:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| 106 (0x6A hex)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Display Commands]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[AGI Text Screen]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[graphics]]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[clear.text.rect]]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Category:Commands]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andrew Korson</name></author>
	</entry>
</feed>