[gameprogrammer] Re: Mud colour protocols

Ansi color codes are what you are looking for.

Take a look at some of the old BBS Sourcecode including for BBS Doors, and
libraries, they include examples in many different languages, and are very
easy to implement, as I did this for my own BBS back in the day.

Hope this helps,

Ken


Pain Killa Radio!  - Get Your Comedy Crunk On! (c)2005
Visit: http://www.pkradio.net/ for Heavy Duty Comedy!
LIVE:Weekends 4am-9am CST, UNCENSORED, RAW
WorldWide Via Shoutcast Streaming Audio!
Ken Cornett - Owner / DJ / Producer
yahoo w/voice: storm36969
Pain Killa Radio! - Copyright (c) 2005 - All Rights Reserved.
-----Original Message-----
From: gameprogrammer-bounce@xxxxxxxxxxxxx
[mailto:gameprogrammer-bounce@xxxxxxxxxxxxx] On Behalf Of Stephen Smith
Sent: Monday, July 10, 2006 12:04 PM
To: gameprogrammer@xxxxxxxxxxxxx
Subject: [gameprogrammer] Re: Mud colour protocols

Chris Nystrom wrote:

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

Thanks for your help.  It looks like what I was doing was right all 
along - if I connect using basic telnet, the colours all work fine.  I 
assumed that gnome-mud would be able to handle it automatically,

Thanks for your help,

Stephen






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





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


Other related posts: