[gameprogrammer] Re: Mud colour protocols

On 6/27/06, Stephen Smith <gp@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I'm trying to implement colours in my mud, so that text gets rendered in
different colours on mud clients.  I've had a look on the internet, and
it seems that all you do is send the ESC character (27 dec) and then
something like "[32m".  However, when I send that, the mud client
(gnome-mud) just renders a funny character and then the "[32m" as
straight text.  Can anyone tell me what I'm doing wrong?

I believe what you are describing are ANSI escape codes:

http://en.wikipedia.org/wiki/ANSI_escape_code

The link describes how to represent them in various languages. I
believe you just send them and the client does the rest.

Also see:

http://en.wikipedia.org/wiki/ANSI_art

Hope that helps,

Chris

--
E-Mail: Chris Nystrom <cnystrom@xxxxxxxxx>
http://www.newio.org/
AIM: nystromchris


--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: