1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Ansii color, needing some specs and or pointers. -->
<!--X-From-R13: Qnyvona Fverfvnf Rnexybpx <pnyvonaNqnexybpx.pbz> -->
<!--X-Date: Mon, 27 Jul 1998 21:50:23 &#45;0700 -->
<!--X-Message-Id: 199807280453.WAA17169#darklock,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.LNX.3.96.980727211638.24758A&#45;100000#shamen,cyberhighway.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Ansii color, needing some specs and or pointers.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:caliban#darklock,com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00388.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00390.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00388.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00391.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00389">Author</A>
&nbsp;|&nbsp;<A HREF="#00389">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00389">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: Ansii color, needing some specs and or pointers.</LI>
<LI><em>From</em>: Caliban Tiresias Darklock &lt;<A HREF="mailto:caliban#darklock,com">caliban#darklock,com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 27 Jul 1998 21:47:04 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On 09:18 PM 7/27/98 -0700, I personally witnessed Ben Greear jumping up to
say:
&gt;
&gt;The players keep yelping at me to provide some ansi color, but I'm
&gt;clueless on the art, so I thought I'd see if any of you had any
&gt;pointers?  Surely I'm not the only one to be faced with this
&gt;scourge!

An ANSI escape sequence consists of three basic parts. An escape (ASCII
character 27) and left bracket ([), a parameter, and a command. ANSI color
uses the command 'm'. So here's your ANSI color sequence: ESC[...m with the
parameter replacing the ellipsis and the actual escape character replacing
the ESC. The appropriate parameters are as follows...

0 - Normal intensity
1 - Bright intensity

(I forget what blink is. I think it's 7. Don't use it, in any case.)

Colors themselves are added to 30 for the foreground, 40 for the background:

0 - Black
1 - Red
2 - Green
3 - Yellow
4 - Blue
5 - Magenta
6 - Cyan
7 - White

So red is 31 for the foreground, 41 for the background. Blue is 34 or 44,
same thing. Multiple parameters may be separated by semicolons, so bright
red on a blue background would be ESC[0;31;44m -- and anything you DON'T
change stays the same. Once you set the background blue, it stays blue
until you change it again. 

That's pretty much it. ANSI color is pretty easy. The full ANSI terminal
standard is a LOT more complex, but much of it is outdated and these days
you can't assume what you used to about the other end anymore (like 24
lines and 80 columns available or fixed width fonts).



</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00388" HREF="msg00388.html">[MUD-Dev] Ansii color, needing some specs and or pointers.</A></STRONG>
<UL><LI><EM>From:</EM> Ben Greear &lt;greear#cyberhighway,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00388.html">[MUD-Dev] Ansii color, needing some specs and or pointers.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00390.html">[MUD-Dev] Re: WIRED: Kilers have more fun</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00388.html">[MUD-Dev] Ansii color, needing some specs and or pointers.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00391.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00389"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00389"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00417" HREF="msg00417.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
Ross Nicoll <a href="mailto:rnicoll#lostics,demon.co.uk">rnicoll#lostics,demon.co.uk</a>, Wed 29 Jul 1998, 11:59 GMT
</LI>
<LI><strong><A NAME="00428" HREF="msg00428.html">[MUD-Dev] Re: Ansii color, needing some specs and or  pointers.</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Thu 30 Jul 1998, 04:39 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00430" HREF="msg00430.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 30 Jul 1998, 14:24 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00388" HREF="msg00388.html">[MUD-Dev] Ansii color, needing some specs and or pointers.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Tue 28 Jul 1998, 04:24 GMT
<UL>
<LI><strong><A NAME="00389" HREF="msg00389.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Tue 28 Jul 1998, 04:50 GMT
</LI>
<LI><strong><A NAME="00391" HREF="msg00391.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Tue 28 Jul 1998, 04:58 GMT
</LI>
<LI><strong><A NAME="00392" HREF="msg00392.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
Katrina McClelan <a href="mailto:kitkat#the486,bradley.edu">kitkat#the486,bradley.edu</a>, Tue 28 Jul 1998, 05:18 GMT
</LI>
<LI><strong><A NAME="00398" HREF="msg00398.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 28 Jul 1998, 17:30 GMT
<UL>
<LI><strong><A NAME="00408" HREF="msg00408.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Wed 29 Jul 1998, 00:29 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>