Starflight Newbie
Joined: 30 May 2004 Posts: 4 Location: Australia
|
Posted: Sat Jun 05, 2004 4:06 am |
Depending on how you send text to your mud, you should just be able to include it as part of that. For example:
send_to_char("ANSI 123456 ANSI.rn", ch)
Replace the first ANSI with the escape sequence for the color you want, and the second ANSI with the escape sequence for normal text color (the first escape sequence in your list).
When you've got a handle on it, you can map the escape sequence values to something else more easily written in your text (eg. &r for red, &g for green, etc)
Note that while zMUD does include a few escape sequences, the whole ANSI system is generally dealt with by your mud's code and is independant of zMUD. |
|