<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikimd.com/index.php?action=history&amp;feed=atom&amp;title=ANSI_escape_code</id>
	<title>ANSI escape code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikimd.com/index.php?action=history&amp;feed=atom&amp;title=ANSI_escape_code"/>
	<link rel="alternate" type="text/html" href="https://wikimd.com/index.php?title=ANSI_escape_code&amp;action=history"/>
	<updated>2026-04-06T02:57:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wikimd.com/index.php?title=ANSI_escape_code&amp;diff=5603190&amp;oldid=prev</id>
		<title>Prab: CSV import</title>
		<link rel="alternate" type="text/html" href="https://wikimd.com/index.php?title=ANSI_escape_code&amp;diff=5603190&amp;oldid=prev"/>
		<updated>2024-04-14T21:35:37Z</updated>

		<summary type="html">&lt;p&gt;CSV import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:DEC_VT100_terminal.jpg|thumb]] [[File:XtermMenus.png|left|thumb]] [[File:ANSI_sample_program_output.png|left|thumb]] &amp;#039;&amp;#039;&amp;#039;ANSI escape codes&amp;#039;&amp;#039;&amp;#039; are a standard for in-band signaling to control the cursor location, color, font styling, and other options on video text terminals and terminal emulators. Certain sequences of bytes, most starting with [[Escape character|Esc]] and &amp;#039;[&amp;#039;, are embedded into the text, which the terminal looks for and interprets as commands, not as character codes.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
ANSI escape codes were developed in the 1970s to replace vendor-specific sequences and became widespread in the early [[1980s]] with the adoption of the [[ANSI]] (American National Standards Institute) standard ANSI X3.64. The standard was based on earlier systems such as the [[VT100]] terminal that DEC produced. Over time, these codes have been extended and modified by various terminal emulators.&lt;br /&gt;
&lt;br /&gt;
== Functionality ==&lt;br /&gt;
The ANSI escape codes control functions such as moving the cursor, changing text color, clearing the screen, and other visual effects. They are used by printing them to the terminal as if they were regular text. For example, the sequence to change the text color to red might look like &amp;quot;\033[31m&amp;quot;, where &amp;quot;\033&amp;quot; is the escape character in octal representation.&lt;br /&gt;
&lt;br /&gt;
=== Cursor Control ===&lt;br /&gt;
Cursor movement is one of the primary functions of ANSI escape codes. Commands allow the cursor to move up, down, left, or right, to jump to a specific position, and to save and restore its position.&lt;br /&gt;
&lt;br /&gt;
=== Text Formatting ===&lt;br /&gt;
Text formatting includes changing colors, bolding, underlining, and other text styles. These codes can set the foreground and background colors from a predefined list of colors and enable or disable text styles.&lt;br /&gt;
&lt;br /&gt;
=== Screen Control ===&lt;br /&gt;
Screen control commands include clearing the screen or parts of it and scrolling the screen or a portion of it. These commands are essential for creating dynamic and interactive terminal applications.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
ANSI escape codes are widely used in command-line applications to enhance output visually. They are supported by most modern terminal emulators, such as [[Xterm]] and [[GNOME Terminal]]. However, their support can vary, and some sequences may work differently or not at all in different terminals.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Here are a few examples of ANSI escape codes:&lt;br /&gt;
* Move the cursor to the top left corner of the screen: &amp;quot;\033[H&amp;quot;&lt;br /&gt;
* Clear the screen: &amp;quot;\033[2J&amp;quot;&lt;br /&gt;
* Set text color to bright green: &amp;quot;\033[92m&amp;quot;&lt;br /&gt;
* Reset all attributes (colors, bold, underline, etc.): &amp;quot;\033[0m&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Control character]]&lt;br /&gt;
* [[Terminal emulator]]&lt;br /&gt;
* [[VT100]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Computer programming]]&lt;br /&gt;
[[Category:Character encoding]]&lt;br /&gt;
{{computing-stub}}&lt;/div&gt;</summary>
		<author><name>Prab</name></author>
	</entry>
</feed>