<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3867" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2016-04-10T06:08:05-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3867</id>

		<entry>
		<author><name><![CDATA[Chymookie]]></name></author>
		<updated>2016-04-10T06:08:05-04:00</updated>

		<published>2016-04-10T06:08:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104917#p104917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104917#p104917"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104917#p104917"><![CDATA[
Original Poster - this helped clarify a few things in regards to a colorfaq I was directed to that wasn't as detailed.<br><br>If there was an emote for thumbs up, or rock on - it'd be coming your way!<br><br>I'll rpost again if/when I anything comes up from using codes in regards to any scripts I learn/work on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12615">Chymookie</a> — Sun Apr 10, 2016 6:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jurist111]]></name></author>
		<updated>2010-10-23T20:15:12-04:00</updated>

		<published>2010-10-23T20:15:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94834#p94834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94834#p94834"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94834#p94834"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>array set colors { blue \0032 green \0033 red \0034 purple \0036 orange \0037 yellow \0038 lightgreen \0039 lightblue \00312 pink \00313 grey \00314 lightgrey \00315 nocolor \003 bold \002 underline \037 } foreach {color code} [array get colors] { proc $color {} "return $code" } </code></pre></div>where to give this colors in eggdrop .. i basically wants to create color questions i.e<br>blue|!react fast! Guess the color ------&gt; <br>where n how i can give  the color ?<br>it will b in question file?<br>or trivia tcl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11331">jurist111</a> — Sat Oct 23, 2010 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-05-07T17:16:29-04:00</updated>

		<published>2008-05-07T17:16:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82793#p82793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82793#p82793"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82793#p82793"><![CDATA[
Didn't test before i answered! I see it now.Hmm<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Wed May 07, 2008 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2008-05-07T17:11:07-04:00</updated>

		<published>2008-05-07T17:11:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82792#p82792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82792#p82792"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82792#p82792"><![CDATA[
<blockquote class="uncited"><div>Ok, sorry..big mistake from me!<br>Understand you well!<br>But with array it could resolve the problem?<br>since you put <br>[bold]<strong class="text-strong">HERE</strong>[bold]<br><br>I mean this because you don't do \00341HERE<br>instead [color]TEXT[color]</div></blockquote>its the same, if you do [red]TEXT its ok, BUT if you do [red]15 Baloons, its WRONG again. [red] returns <em class="text-italics">\0034</em>, so result will be again wrong:<br><br><em class="text-italics">\003<strong class="text-strong">4</strong></em><strong class="text-strong">1</strong>5 Baloons<br><br>and on irc will be again just readable "5 Baloons"<br><br>this of course happens only if you want to colorize variable text, you can use onedigit color for coloring static messages, but for coloring variables always use 2-digit. For example <em class="text-italics">\00304$text\003</em>, <em class="text-italics">\00304[output]\003</em>, etc..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Wed May 07, 2008 5:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-05-07T17:02:08-04:00</updated>

		<published>2008-05-07T17:02:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82791#p82791</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82791#p82791"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82791#p82791"><![CDATA[
Ok, sorry..big mistake from me!<br>Understand you well!<br>But with array it could resolve the problem?<br>since you put <br>[bold]<strong class="text-strong">HERE</strong>[bold]<br><br>I mean this because you don't do \00341HERE<br>instead [color]TEXT[color]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Wed May 07, 2008 5:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2008-05-07T14:43:03-04:00</updated>

		<published>2008-05-07T14:43:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82785#p82785</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82785#p82785"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82785#p82785"><![CDATA[
<blockquote class="uncited"><div>This don't make any sence, since the color codes only work as two digits in mIRC. It's same as in eggdrop only with \003 first</div></blockquote>you didnt read the explanation, did you?<br><br>if you use \003<strong class="text-strong">4</strong>Text you'll get red text - thats ok<br>*BUT* if you want to colorize something with number at the begin, you have problem, for example:<br><br>\003<strong class="text-strong">4</strong>15 Baloons<br><br>will be shown as <em class="text-italics">5 Baloons</em> (and not "15 Baloons" in red) because there will be color code <strong class="text-strong">41</strong><br><br>just try it, if you enter higher color code than 15 in mirc, no color is used, but  two digit color code is stripped, in irssi are colos repeated (code 16 is same as 0, code 17 same as 1, code 20 same as 4 etc...)<br><br><br>so thats why people should ALWAYS use two digit color codes for coloring variable text, that could be starting with number.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Wed May 07, 2008 2:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-05-07T14:01:41-04:00</updated>

		<published>2008-05-07T14:01:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82782#p82782</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82782#p82782"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82782#p82782"><![CDATA[
This don't make any sence, since the color codes only work as two digits in mIRC. It's same as in eggdrop only with \003 first<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Wed May 07, 2008 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2008-05-07T13:17:29-04:00</updated>

		<published>2008-05-07T13:17:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82777#p82777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82777#p82777"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82777#p82777"><![CDATA[
<blockquote class="uncited"><div>Want to share my experience with color codes.<br>this array method makes it easy for you to write your script and makes it more clean.<br><div class="codebox"><p>Code: </p><pre><code>array set colors {blue \0032green \0033red \0034purple \0036orange \0037yellow \0038lightgreen \0039lightblue \00312pink \00313grey \00314lightgrey \00315nocolor \003bold \002underline \037}foreach {color code} [array get colors] { proc $color {} "return $code" }</code></pre></div>After this you need to set global colors<br>and then use [pink] [bold] [nocolor]<br>very useful for me. So hope you see it useful too</div></blockquote>you really SHOULD use 2 digits color codes (reason why is in post above yours)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Wed May 07, 2008 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-05-07T12:42:39-04:00</updated>

		<published>2008-05-07T12:42:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82776#p82776</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82776#p82776"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82776#p82776"><![CDATA[
Want to share my experience with color codes.<br>this array method makes it easy for you to write your script and makes it more clean.<br><div class="codebox"><p>Code: </p><pre><code>array set colors {blue \0032green \0033red \0034purple \0036orange \0037yellow \0038lightgreen \0039lightblue \00312pink \00313grey \00314lightgrey \00315nocolor \003bold \002underline \037}foreach {color code} [array get colors] { proc $color {} "return $code" }</code></pre></div>After this you need to set global colors<br>and then use [pink] [bold] [nocolor]<br>very useful for me. So hope you see it useful too<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Wed May 07, 2008 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2008-02-16T02:29:30-04:00</updated>

		<published>2008-02-16T02:29:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80887#p80887</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80887#p80887"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80887#p80887"><![CDATA[
Bug, or feature..Depending on POV.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Feb 16, 2008 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2008-02-15T20:39:44-04:00</updated>

		<published>2008-02-15T20:39:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80884#p80884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80884#p80884"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80884#p80884"><![CDATA[
In one respect, the formatting for color in the above FAQ is misleading. It implies that a single digit added to the \003 such as \0034 for foreground color red is fine. It is not. If the next digit (the first digit intended as the actual output text) happened to be numeric then it would be interpreted as part of the color code. Color codes must always be two digits long such that no such misinterpretation can occur. ie. \00304 and not \0034.<br><br>Examples :-<br><br>-----<br><br>"\00345 people perished\003"<br>would output nothing at all because \00345 does not exist as a color code<br><br>while<br><br>"\003045 people perished\003" would correctly output '5 people perished' in red text<br><br>-----<br><br>"\00315 people perished\003"<br>would output 'people perished' in light grey instead of the intended '5 people perished' in black<br><br>while<br><br>"\003015 people perished\003"<br>would correctly output '5 people perished' in black<br><br>-----<br><br>To be fair, if the first digit of the output text is non numeric, then the issue doesn't arise.<br><br>However, just to make the reader ever more wary of making this mistake. There will not be an error in the partyline to assist in tracing this self inflicted bug.<br><br>ALWAYS express color codes as two digit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Feb 15, 2008 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-06T01:24:21-04:00</updated>

		<published>2004-09-06T01:24:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40619#p40619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40619#p40619"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40619#p40619"><![CDATA[
Here is a good source for ASCII Codes:<br><a href="http://www.ascii.cl/htmlcodes.htm" class="postlink">http://www.ascii.cl/htmlcodes.htm</a><br><a href="http://www.ascii.cl/index.htm" class="postlink">http://www.ascii.cl/index.htm</a><br><br>Nevertheless, ASCII is so popular now, just type "ascii codes" on <a href="http://www.google.com" class="postlink">www.google.com</a> you will instantly get one better to better website regarding ascii codes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 06, 2004 1:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-02T14:55:41-04:00</updated>

		<published>2004-09-02T14:55:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40548#p40548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40548#p40548"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40548#p40548"><![CDATA[
Link for ASCII table is broke  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Thu Sep 02, 2004 2:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-10T07:48:55-04:00</updated>

		<published>2003-03-10T07:48:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17638#p17638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17638#p17638"/>
		<title type="html"><![CDATA[Colour and formatting codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17638#p17638"><![CDATA[
While not strictly a Tcl FAQ, it has been asked many times, with regards to use within Tcl scripts.<br><br>Formatting codes, are used by IRC clients, to produce a more readable format, by changing text to and from bold, underline, colour (both font and background colours) and reversed text.<br><br>Most, but not all, clients support this, and some support it differently to others.<br><br>Additionally, some clients support more than the codes listed below, however, I will point out, only the ones that are relevant.<br><br>Most of this topic will relate to how mIRC functions, seeing how this is the more widely used client. Should any issues regarding “other client” support be noted, you should point these out in a reply, as they may likely be asked in the future.<br><br><strong class="text-strong"><span style="text-decoration:underline">Bold text</span></strong><br><br><em class="text-italics">Client support</em><br>This is produces using the CTRL+B control code, by literally holding down the CTRL key, and tapping B.<br><br><em class="text-italics">ASCII character</em><br>The bold character has a octal value of 2, but is represented as 002.<br><br>As with all the characters, simply typing 002 isn’t enough, as this will only produce the characters 0, 0 and 2. Instead, you have to escape the code, so that Tcl knows, to translate them into the correct coding.<br><br>This is done, using the Tcl escape code, which is a simple \ (backslash).<br><br><em class="text-italics">Start and stop</em><br>You set the start and end points of the formatting, by using one code to start, and one to stop. These are placed in the text string at the required points.<br><br><em class="text-italics">Example</em><br>Code:<br>\002Hello\002 to all<br><br>Output<br><strong class="text-strong">Hello</strong> to all<br><br><strong class="text-strong"><span style="text-decoration:underline">Underline text</span></strong><br><br><em class="text-italics">Client support</em><br>This is produced using the CTRL+U control code, by literally holding the CTRL key, and tapping U.<br><br><em class="text-italics">ASCII character</em><br>The underline character has a octal value of 37, but is represented as 037.<br><br><em class="text-italics">Start and stop</em><br>You set the start and end points of the formatting, by using one code to start, and one to stop. These are placed in the text string at the required points.<br><br><em class="text-italics">Example</em><br>Code:<br>This is how to produce a \037EXAMPLE\037 of the underline character<br><br>Output:<br>This is how to produce a <span style="text-decoration:underline">EXAMPLE</span> of the underline character<br><br><strong class="text-strong"><span style="text-decoration:underline">Reversed/italic text</span></strong><br><br><em class="text-italics">Client support</em><br>In mIRC: Produced using CTRL+R, causes text to show in reverse.<br><br>This means, the font and background colours are switched.<br>IE, Red text, or a black background causes, black text on a red background.<br><br>Other clients: This produces the text in italic’s/stressed look.<br><br>This doesn’t apply to all other clients, as some may act like mirc.<br><br><em class="text-italics">ASCII character</em><br>This control code uses the code 26, represented as 026.<br><br><em class="text-italics">Start and stop</em><br>You set the start and end points of the formatting, by using one code to start, and one to stop. These are placed in the text string at the required points.<br><br><em class="text-italics">Example</em><br>Code:<br>Here is an \026EXAMPLE\026 of the output<br><br>Output other:<br>Here is an <em class="text-italics">EXAMPLE</em> of the output<br>Output mIRC:<br><em class="text-italics">Forum doesn’t have the formatting codes for this, I may add a image for this later</em><br><br><strong class="text-strong"><span style="text-decoration:underline">Normal text</span></strong><br><br><em class="text-italics">Client support</em><br>This is produced using the CTRL+O code, and causes text to return to client default formatting.<br><br>Thus, if a script is in use on the client, to produce formatting on the screen, this will bypass this formatting, to use the client default colours, weight and decoration.<br><br><em class="text-italics">ASCII character</em><br>This code uses octal value 17, represented as 017<br><br><em class="text-italics">Start and stop</em><br>mIRC: This can be turned on and off, like in the above examples.<br><br>Other clients: This may be a one off code, where all counters are reset, and no formatting will be used, until the next control character is parsed.<br><br><em class="text-italics">Example</em><br>Code:<br>Here is an example of \017normalised text<br><br>Output:<br><em class="text-italics">There is no real way to show an example on the forum, and I may create an image later</em><br><br><strong class="text-strong"><span style="text-decoration:underline">CTCP Delimiter</span></strong><br><br><em class="text-italics">Client support</em><br>All clients will support this. In most clients, you use a CTCP command to create the correct output.<br><br><em class="text-italics">ASCII character</em><br>The CTCP character uses decimal code 1, represented as 001. The order and commands used with this character are important, and are mainly beyond this document.<br><br>In brief, the CTCP protocol, is a sub-protocol of IRC (RFC 1459). It was produced after the IRC protocol, to extend the abilities of clients, and to allow structured data/requests to be made, in a fashion, that doesn’t break existing clients, and doesn’t interfere with regular data.<br><br>More technical details on what it is used for, and how you should use it, is available in <a href="http://www.irchelp.org/irchelp/rfc/ctcpspec.html" class="postlink">The Client-to-Client Protocol (CTCP) specification</a><br><br><em class="text-italics">Start and stop</em><br>As noted, the position of this code is important.<br><br>The very first character of a line, needs to be the CTRL code, starting the code. The very last character needs to be the CTRL code, ending it.<br><br>This, it may only ever be the first or the last character, with none in between.<br><br>Any arguments to send, need to be enclosed between the codes.<br><br>Note: While not to do with start and stop, there is one more thing to note.<br><br>CTCP requests are made, using the PRIVMSG command, and any reply, should be sent via the NOTICE command.<br><br>CTCP commands/messages take the following format<blockquote class="uncited"><div>\001&lt;COMMAND&gt;[ &lt;SPACE&gt; &lt;ARGUMENT&gt; [ARGUMENSTS]]\001</div></blockquote>This means the COMMANDS can be on its own. If there are arguments to send, sererate each by a space, then terminate with a CTCP control character.<br><br>Some of the default suported characters are<blockquote class="uncited"><div>PING - Measure the round trip through IRC servers.<br>ERROR - Tell a client of errornouse information. Can be used like echo below.<br>FINGER - Get information about a single client, much like the finger protocol.<br>ECHO - Simalar to ping, however, you can send text with this.<br>TIME - Get information about the current time/date and timezone for a user.<br>DCC - DCC chat, send and fserve requests (and others on supported clients) are initilised through the CTCP protocol.</div></blockquote><em class="text-italics">Example</em><br>Code:<br>\001PING 11235465\001<br><br>Output:<br><em class="text-italics">No example possible</em><br><br><strong class="text-strong"><span style="text-decoration:underline">Colour control</span></strong><br><br><em class="text-italics">Client support</em><br>Most clients support this code, and within mIRC, is generated using the CTRL+K combination.<br><br><em class="text-italics">ASCII character</em><br>This code uses decimal value 3, represented as 003<br><br><em class="text-italics">Start and stop/examples</em><br>Colour control codes are both simple, and complex. They allow you to change the foreground colour (font) and background colour (though some clients to not support it, they will accept the code never the less). I will role the example section into this.<br><br>There are three ways to represent the colour code.<br><br>\003<br>\003FF<br>\003FF,BB<br><br>Where FF means “Forground colour” and BB means “Background colour”, these are separated using a comma (,).<br><br>The colours codes, can be both single and/or double digits, if the first one if to be 0.<br><br>As with normal codes, you stop the formatting using the code at the required stop point, without any arguments.<br><br>Both FF and BB are made up of single, or 2 digit codes, that correspond to 1 of 16 colours (mIRC has a 17th, with a special meaning).<br><br>Here is a list of the colour names, as defined by the mIRC help documents.<div class="codebox"><p>Code: </p><pre><code>0-White1-Black2-Blue3-Green4-Light Red5-Brown6-Purple7-Orange8-Yellow9-Light Green10-Cyan11-Light Cyan12-Light Blue13-Pink14-Grey15-Light Grey</code></pre></div>However, other clients are known to use different codes for the colours.<br><br>In mIRC, the 17th colour is number 99, and means transparent, allowing text to blend in with the background, regardless of what colour is in use behind the character, and even better, allowing the character to bleed across colours, without being shown.<br><br>From this, we can do the following.<br><br>Make text red:<br>\00304Hello<br>\0034Hello<br><br>Yellow text on red background:<br>\00308,04Hello<br>\0038,04Hello<br>\00308,4Hello<br>\0038,4Hello<br><br>There is one small area to watch out for, when changing between colours, in one line of text. Unless you kill the colour formatting with a single code, or specifically force a background colour, the text will inherit the background colour, from the previous code.<br><br>EG<br>\00300,01Hello \00301to you<br>and<br>\00300,01Hello \003\00301to you<br><br>These are totally different<br>In the first case, the word “Hello” is “White on black”, and “to you” is “black on black”, as it inherits the back background from the first code.<br><br>In the second, there is a second single colour code character before the “to you” code. This removes all colour formatting, and prevent the background colour from being inherited.<br><br><strong class="text-strong"><span style="text-decoration:underline">Other control code</span></strong><br><br>There are other control codes available. These include Bell (decimal 7, 007), which make computer go “ding” through the speaker (however, this is usually disabled by default, and most system do not use it because of the annoyance factor).<br><br>A complete list of the ASCII table, that can be used in your scripts, is available <a href="http://helpdesk.zaz.net/documents/ASCIITable.php" class="postlink">FROM THIS LINK</a><br><br><span style="text-decoration:underline"><em class="text-italics">Edit:</em></span> Many thanks to "user" for corrections. Tcl uses octal (base 8) numbers in the escape codes, and not our standard decimal (base 10) numbers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Mar 10, 2003 7:48 am</p><hr />
]]></content>
	</entry>
	</feed>
