<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=Colorized_Terminal_Outputs</id>
	<title>Colorized Terminal Outputs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=Colorized_Terminal_Outputs"/>
	<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Colorized_Terminal_Outputs&amp;action=history"/>
	<updated>2026-10-19T00:54:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=Colorized_Terminal_Outputs&amp;diff=5053&amp;oldid=prev</id>
		<title>Leo: Added category</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Colorized_Terminal_Outputs&amp;diff=5053&amp;oldid=prev"/>
		<updated>2020-06-15T00:29:31Z</updated>

		<summary type="html">&lt;p&gt;Added category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:29, 15 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ echo &amp;quot;\033[31;44mRed with a Blue Background Text\033[0m&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ echo &amp;quot;\033[31;44mRed with a Blue Background Text\033[0m&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Navbox Linux}}[[Category:Linux]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-3875:rev-5053:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=Colorized_Terminal_Outputs&amp;diff=3875&amp;oldid=prev</id>
		<title>Leo: http://leo.steamr.com/2011/01/color-ize-your-scripts/</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Colorized_Terminal_Outputs&amp;diff=3875&amp;oldid=prev"/>
		<updated>2019-09-12T03:09:53Z</updated>

		<summary type="html">&lt;p&gt;http://leo.steamr.com/2011/01/color-ize-your-scripts/&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Coloring Output ==&lt;br /&gt;
&lt;br /&gt;
To color your shell script output, you will need to echo out an escape sequence that looks something like {{code|\033[$color1;$color2;$stylem}}.&lt;br /&gt;
&lt;br /&gt;
You can specify one or more colors or styles by delimiting the colors or styles with a semicolon and end the list with a &amp;#039;m&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Color is given as:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Color !! Foreground !! Background&lt;br /&gt;
|-&lt;br /&gt;
| Black || 30 || 40&lt;br /&gt;
|-&lt;br /&gt;
| Red || 31 || 41&lt;br /&gt;
|-&lt;br /&gt;
| Green || 32 || 42&lt;br /&gt;
|-&lt;br /&gt;
| Yellow || 33 || 43&lt;br /&gt;
|-&lt;br /&gt;
| blue || 34 || 44&lt;br /&gt;
|-&lt;br /&gt;
| Magenta || 35 || 45&lt;br /&gt;
|-&lt;br /&gt;
| Cyan || 36 || 46&lt;br /&gt;
|-&lt;br /&gt;
| White || 37 || 47&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Style is given by:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Style !! Code&lt;br /&gt;
|-&lt;br /&gt;
| Normal || 0&lt;br /&gt;
|-&lt;br /&gt;
| Bold || 1&lt;br /&gt;
|-&lt;br /&gt;
| Underline || 4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
Try these examples by echoing them in a terminal.&lt;br /&gt;
&lt;br /&gt;
To print something as underlined green:&lt;br /&gt;
{{highlight|lang=terminal|code=&lt;br /&gt;
$ echo &amp;quot;\033[33;4mYellow Underlined Text\033[0m&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
To print something underlined, red, with a blue background:&lt;br /&gt;
{{highlight|lang=terminal|code=&lt;br /&gt;
$ echo &amp;quot;\033[31;44;4mRed Underlined with a Blue Background Text\033[0m&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
To print the above without the underline, just remove the &amp;#039;4&amp;#039; style&lt;br /&gt;
{{highlight|lang=terminal|code=&lt;br /&gt;
$ echo &amp;quot;\033[31;44mRed with a Blue Background Text\033[0m&amp;quot;&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
</feed>