1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Ansii color, needing some specs and or pointers. -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Mon, 27 Jul 1998 22:22:59 &#45;0700 -->
<!--X-Message-Id: 199807280521.XAA01839@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--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:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00392.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00394.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00403.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00395.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00393">Author</A>
&nbsp;|&nbsp;<A HREF="#00393">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00393">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>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Mon, 27 Jul 1998 23:21:08 -0600</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>
[Ben Greear:]

 &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!

Yeah, I had requests for that too. So, I whined at one of the requesters
that I didn't know what he meant. So he sent me a spec and an example.
Rats! I never did do it though - it seemed silly to add something like
that to a multimedia system. Anyway, here is most of the email he
sent me (I'm sure he won't mind contributing to this list!)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I promised to send you the ANSI codes I used in my BBS, well I decided to=
 give all the possible ANSI codes, just for being complete.

Ok here they are:
--------------------------------------
M A X's BBS supports all the ANSI colour codes plus some cursor movement =
codes (Which I don't use and are generally very rare, so you don't need t=
o include these!, Mati). All ANSI codes begin with two characters "Escape=
" (^[) and "[", the following codes are optional numbers reperated by a s=
emi colon (;) and terminated with an "m" for a colour code, "A, B, C, or =
D" for a delta cursor movement or "H" for cursor position. The colour cod=
es can be as long as you like and are terminated with the "m" character.

eg:

&lt;Esc&gt;[n;n...m

&lt;Esc&gt; - the "Escape" (^[) character
[ - The "[" character
n - A number (see below)
; - Seperate numbers
m - Terminates the ANSI colour code

Where the "n" is a number representing a colour or attribute. Here are th=
e available colours:

30 - Black foreground
31 - Red foreground
32 - Green foreground
33 - Yellow foreground
34 - Blue foreground
35 - Magenta foreground
36 - Cyan foreground
37 - White foreground
40 - Black background
41 - Red background
42 - Green background
43 - Yellow background
44 - Blue background
45 - Magenta background
46 - Cyan background
47 - White background

Here are the available attributes:

0 - All attributes off (normal white on black)
1 - Bold on (high intensity)
3 - Italics on
4 - Underscore on
5 - Blink on (or italic if flashing text is turned off)
7 - Reverse video on (swaps foreground and background)

For a delta cursor movement the ANSI string is similar to the above, exce=
pt that you can only have one number and the termination character gives =
the direction of movement:

A - Cursor move up by n (north)
B - Cursor move down by n (south)
C - Cursor move right by n (east)
D - Cursor move left by n (west)

eg:

&lt;Esc&gt;[10A
The cursor will move up by ten lines

For cursor position the ANSI string is terminated by the "H" character:

eg:

&lt;Esc&gt;[n1;n2H
n1 - Row (line)
n2 - Column
If the number for both delta cursor movement and cursor position are zero=
 (0) or ommited, then they will default to one (1).

Changes from version 1.00 to version 1.10:

* The ANSI cursor position code now accepts just a row number and no colu=
mn number.

eg:

&lt;Esc&gt;[20H

Changes from version 1.16 to version 1.18:

* The ANSI codes "&lt;Esc&gt;[2J" and "&lt;Esc&gt;[2K" have been implemented. Some do=
or programs use these codes.

---------------------------------------------------
(source: MAX's BBS guide, by Anthony Barrett converted to AmigaGuide form=
at by Greg Fitch)

Sorry I had to include all these in the letter, Multiview just doesn't wa=
nt to copy a piece of text to a file, all had to be typed, I dropped the =
page layout, because on Email, it probably doesn't show up well.

I've also included a UUEncoded ANSI file, so you can test, hav a look at =
it.

Greeting from Holland! =


--BOUNDARY.6913.1425.4014360.2
Content-Type: application/octet-stream; name="Intro.text"
Content-Transfer-Encoding: x-uue
Content-Description:: : An ANSI example file.

begin 644 YAM.msg.2
M&amp;ULP.S0P;1M;,DH;6T@*"B`@("`;6S$[,S5M5R!%($P@0R!/($T@12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@("`@("`@("`@&amp;ULS-FU,.
M87-T(&amp;]N.B`;6S,U;25V"B`@("`@("`@("`@("`@("`@("`@("`@("`@("`@O
M("`@("`;6S,V;4%C8V5S&lt;SH@&amp;ULS-6TE;`H@("`@("`@("`@("`@("`@("`@&gt;
M("`@("`@("`@("`;6S,V;51I;64@;&amp;EM:70Z(!M;,S5M)6T*("`@("`@("`@;
M("`@("`@("`@("`@("`@("`@("`@(!M;,S9M1"]5(')A=&amp;EO.B`;6S,U;25N+
M"B`@("`@("`@("`@("`@("`@("`@("`@&amp;ULS-FU,87-T(&amp;UE&lt;W-A9V4@&lt;F5AG
M9#H@&amp;ULS-6TE;PH@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@G
M(!M;,S9M0V%L;',Z(!M;,S5M)7$*("`@("`@("`@("`@("`@("`@("`@("`@@
M("`@("`@("`;6S,V;4UE&lt;W-A9V5S.B`;6S,U;25R"B`@("`@("`@("`@("`@*
M("`@("`@("`@("`@("`@("`@(!M;,S9M57!L;V%D&lt;SH@&amp;ULS-6TE&lt;PH@("`@+
M("`@("`@("`@("`@("`@("`@("`@("`@("`@&amp;ULS-FU$;W=N;&amp;]A9',Z(!M;G
I,S5M)70@("`@("`@("`@("`@("`@("`@("`@("`@(!M;,6TE6AM;,&amp;TZ.
``
end
size 1256

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

-- 
Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00392.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00394.html">[MUD-Dev] Re: WIRED: Kilers have more fun</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00403.html">[MUD-Dev] PANARD VISION -- 3D-Real-Time Portable Engine</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00395.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00393"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00393"><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: Affordances and social method</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00437" HREF="msg00437.html">[MUD-Dev] Re: Affordances and social method</A></strong>, 
Mike Sellers <a href="mailto:mike#bignetwork,com">mike#bignetwork,com</a>, Fri 31 Jul 1998, 01:17 GMT
</LI>
<LI><strong><A NAME="00438" HREF="msg00438.html">[MUD-Dev] Re: Affordances and social method</A></strong>, 
Joel Kelso <a href="mailto:joel#ee,uwa.edu.au">joel#ee,uwa.edu.au</a>, Fri 31 Jul 1998, 01:26 GMT
</LI>
</ul>
<LI><strong><A NAME="00452" HREF="msg00452.html">[MUD-Dev] Re: Affordances and social method</A></strong>, 
quzah <a href="mailto:quzah#geocities,com">quzah#geocities,com</a>, Sun 02 Aug 1998, 01:25 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00403" HREF="msg00403.html">[MUD-Dev] PANARD VISION -- 3D-Real-Time Portable Engine</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 28 Jul 1998, 22:21 GMT
<LI><strong><A NAME="00393" HREF="msg00393.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>, Tue 28 Jul 1998, 05:22 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00395" HREF="msg00395.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
S. Patrick Gallaty <a href="mailto:choke#sirius,com">choke#sirius,com</a>, Tue 28 Jul 1998, 07:07 GMT
<UL>
<LI><strong><A NAME="00396" HREF="msg00396.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
Robert Woods <a href="mailto:rwoods#nebula,honors.unr.edu">rwoods#nebula,honors.unr.edu</a>, Tue 28 Jul 1998, 10:39 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00397" HREF="msg00397.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
S. Patrick Gallaty <a href="mailto:choke#sirius,com">choke#sirius,com</a>, Tue 28 Jul 1998, 16:06 GMT
</LI>
<LI><strong><A NAME="00404" HREF="msg00404.html">[MUD-Dev] Re: Ansii color, needing some specs and or pointers.</A></strong>, 
Scatter <a href="mailto:scatter#thevortex,com">scatter#thevortex,com</a>, Tue 28 Jul 1998, 23:13 GMT
</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>