<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pixelchaos.net &#187; Bash</title>
	<atom:link href="http://www.pixelchaos.net/category/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelchaos.net</link>
	<description>random bits for your terminal</description>
	<lastBuildDate>Tue, 29 Sep 2009 11:38:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>show_colors.sh</title>
		<link>http://www.pixelchaos.net/2007/06/22/show_colors/</link>
		<comments>http://www.pixelchaos.net/2007/06/22/show_colors/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 13:42:27 +0000</pubDate>
		<dc:creator>jcl</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.pixelchaos.net/index.php/archives/13</guid>
		<description><![CDATA[A handy little script to output all possible foreground and background ANSI colors to a terminal, complete with their codes for building nice looking terminal prompts.
Enjoy :-)


#!/bin/bash
#
#   This file echoes a bunch of color codes to the
#   terminal to demonstrate what's available.  Each
#   line is the color code [...]]]></description>
			<content:encoded><![CDATA[<p>A handy little script to output all possible foreground and background ANSI colors to a terminal, complete with their codes for building nice looking terminal prompts.</p>
<p>Enjoy :-)<br />
<span id="more-13"></span><br />
<code lang="bash"><br />
#!/bin/bash<br />
#<br />
#   This file echoes a bunch of color codes to the<br />
#   terminal to demonstrate what's available.  Each<br />
#   line is the color code of one forground color,<br />
#   out of 17 (default + 16 escapes), followed by a<br />
#   test use of that color on all nine background<br />
#   colors (default + 8 escapes).<br />
#</p>
<p>T='gYw'   # The test text</p>
<p>echo -e "\n                 40m     41m     42m     43m\<br />
44m     45m     46m     47m";</p>
<p>for FGs in '    m' '   1m' '  30m' '1;30m' '  31m' '1;31m' '  32m' \<br />
'1;32m' '  33m' '1;33m' '  34m' '1;34m' '  35m' '1;35m' \<br />
'  36m' '1;36m' '  37m' '1;37m';<br />
do FG=${FGs// /}<br />
echo -en " $FGs \033[$FG  $T  "<br />
for BG in 40m 41m 42m 43m 44m 45m 46m 47m;<br />
do echo -en "$EINS \033[$FG\033[$BG  $T  \033[0m";<br />
done<br />
echo;<br />
done<br />
echo<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelchaos.net/2007/06/22/show_colors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
