[gameprogrammer] Re: Mud colour protocols
- From: Stephen Smith <gp@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Mon, 10 Jul 2006 18:03:52 +0100
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
- Follow-Ups:
- [gameprogrammer] Re: Mud colour protocols
- From: Jason Zaphyr
- References:
- [gameprogrammer] Re: Mud colour protocols
- From: Chris Nystrom
Other related posts:
- » [gameprogrammer] Mud colour protocols
- » [gameprogrammer] Re: Mud colour protocols
- » [gameprogrammer] Re: Mud colour protocols
- » [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
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- [gameprogrammer] Re: Mud colour protocols
- From: Jason Zaphyr
- [gameprogrammer] Re: Mud colour protocols
- From: Chris Nystrom