[MUD-Dev] Re: Ansii color, needing some specs and or pointers.
Katrina McClelan
kitkat at the486.bradley.edu
Tue Jul 28 01:14:46 CEST 1998
On Mon, 27 Jul 1998, Ben Greear wrote:
> The players keep yelping at me to provide some ansi color, but I'm
> clueless on the art, so I thought I'd see if any of you had any
> pointers? Surely I'm not the only one to be faced with this
> scourge!
>
Codes below are literal text strings to send to descriptors as in:
sprintf(buf,"\033[0;33mYou are hit by a magic missile\n\033[0;37m");
Color Code Bold
----- ---- ----
black \033[0;30m \033[1;30m
blue \033[0;31m \033[1;31m
green \033[0;32m \033[1;32m
cyan \033[0;33m \033[1;33m
red \033[0;34m \033[1;34m
magenta \033[0;35m \033[1;35m
brown \033[0;36m \033[1;36m (yellow)
white \033[0;37m \033[1;37m
Note that "bold" brown is really yellow.
You can do more with ansi (background colors for instance), but it looks
rather ugly and is not really useful.
-Kat
More information about the mud-dev-archive
mailing list