<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Vt</id>
	<title>Vt - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Vt"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Vt&amp;action=history"/>
	<updated>2026-05-13T09:19:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Vt&amp;diff=1402&amp;oldid=prev</id>
		<title>Redspark: Initial Page</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Vt&amp;diff=1402&amp;oldid=prev"/>
		<updated>2025-04-05T01:58:06Z</updated>

		<summary type="html">&lt;p&gt;Initial Page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This system module defines some special strings which, when printed on a VT100 or compatible terminal window, cause special things to happen: clear the screen, move the cursor, turn bold text on/off, etc.&lt;br /&gt;
&lt;br /&gt;
== Functions ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[vt.textColor|textColor(color)]] || Sets the foreground color of the text.  Specify a single number (index into the 256-color palette), or an [r,g,b] (each 255) list, or a RGB color string like &amp;quot;#FF8800&amp;quot;.  (In the latter two cases, we will automatically find as close match as we can in the color palette.)&lt;br /&gt;
|-&lt;br /&gt;
| [[vt.backColor|backColor(color)]] || Sets the background color of the text.  Specify a single number (index into the 256-color palette), or an [r,g,b] (each 255) list, or a RGB color string like &amp;quot;#FF8800&amp;quot;.  (In the latter two cases, we will automatically find as close match as we can in the color palette.)&lt;br /&gt;
|-&lt;br /&gt;
|[[vt.ledOn|ledOn(n=1)]] || Turns on LEDs, if your terminal has these (most don't anymore)&lt;br /&gt;
|-&lt;br /&gt;
|[[vt.ledOff|ledOff]] || Turns off LEDS.  Same as calling ledOn(0).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
&lt;br /&gt;
=== color ===&lt;br /&gt;
Map of color names (to palete index) for use with textColor and backColor.  But note that you are not limited to these colors!  See notes above.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Value&lt;br /&gt;
|-&lt;br /&gt;
| color.aqua || 51&lt;br /&gt;
|-&lt;br /&gt;
| color.black || 232&lt;br /&gt;
|-&lt;br /&gt;
| color.blue||21&lt;br /&gt;
|-&lt;br /&gt;
| color.brown||137&lt;br /&gt;
|-&lt;br /&gt;
| color.fuchsia||201&lt;br /&gt;
|-&lt;br /&gt;
| color.gray||244&lt;br /&gt;
|-&lt;br /&gt;
| color.green||34&lt;br /&gt;
|-&lt;br /&gt;
| color.lime||46&lt;br /&gt;
|-&lt;br /&gt;
| color.maroon||124&lt;br /&gt;
|-&lt;br /&gt;
| color.navy||19&lt;br /&gt;
|-&lt;br /&gt;
| color.olive||142&lt;br /&gt;
|-&lt;br /&gt;
| color.orange||214&lt;br /&gt;
|-&lt;br /&gt;
| color.pink||217&lt;br /&gt;
|-&lt;br /&gt;
| color.purple||127&lt;br /&gt;
|-&lt;br /&gt;
| color.red||196&lt;br /&gt;
|-&lt;br /&gt;
| color.silver||250&lt;br /&gt;
|-&lt;br /&gt;
| color.teal||37&lt;br /&gt;
|-&lt;br /&gt;
| color.white||255&lt;br /&gt;
|-&lt;br /&gt;
| color.yellow||226&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== cursor ===&lt;br /&gt;
A map of cursor movement escape codes&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| cursor.up(n=1) || Moves cursor up n lines&lt;br /&gt;
|-&lt;br /&gt;
| cursor.down(n=1) || Moves cursor down n lines&lt;br /&gt;
|-&lt;br /&gt;
| cursor.left(n=1) || Moves cursor left n characters&lt;br /&gt;
|-&lt;br /&gt;
| cursor.right(n=1) || Moves cursor right n characters&lt;br /&gt;
|-&lt;br /&gt;
| cursor.nextLine || Moves cursor to beginning of the next line of characters&lt;br /&gt;
|-&lt;br /&gt;
| cursor.home || Moves cursor to upper left&lt;br /&gt;
|-&lt;br /&gt;
| cursor.save || Saves cursor position and attributes&lt;br /&gt;
|-&lt;br /&gt;
| cursor.restore || Restores cursor position and attributes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== tab ===&lt;br /&gt;
A map of tab escape codes&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| tab.set || Sets a tab stop at the current column&lt;br /&gt;
|-&lt;br /&gt;
| tab.clear || Clear a tab stop at the current column&lt;br /&gt;
|-&lt;br /&gt;
| tab.clearAll || Clears all tab stops&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== text size ===&lt;br /&gt;
Escape codes for changing the text size&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| bigTextTop || big text!  Requires printing your message twice, once with the &amp;quot;top half&amp;quot; mode &lt;br /&gt;
|-&lt;br /&gt;
| bigTextBottom || and again with the &amp;quot;bottom half&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| wide || or you can print double-wide, normal-height text.&lt;br /&gt;
|-&lt;br /&gt;
| normalSize || Turns off any of these size changes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== clearing text ===&lt;br /&gt;
Escape codes to clear all or part of the screen&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| clear || Clear entire screen&lt;br /&gt;
|-&lt;br /&gt;
| clearLineToRight|| Clear line from cursor right&lt;br /&gt;
|-&lt;br /&gt;
| clearLineToLeft || Clear line from cursor left&lt;br /&gt;
|-&lt;br /&gt;
| clearLine || Clear entire line&lt;br /&gt;
|-&lt;br /&gt;
| clearBelow || Clear screen from cursor down&lt;br /&gt;
|-&lt;br /&gt;
| clearAbove || Clear screen from cursor up&lt;br /&gt;
|-&lt;br /&gt;
| reset || Clears, plus also resets all state&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Sys Modules]]&lt;br /&gt;
[[Category:Command-Line_MiniScript]]&lt;/div&gt;</summary>
		<author><name>Redspark</name></author>
		
	</entry>
</feed>