|
Malaphus Rousseau Newbie
Joined: 25 Jun 2007 Posts: 6
|
Posted: Wed Jul 25, 2007 7:15 am
Question about ANSI color codes in CMUD! |
Why does "%ansi(blink, white, red)" produce "esc[5;57;41m" when logging to ANSI? I can't find code 57 listed in any ansi code sheets at all. Should it not be a 37? (= white). Just looking for some clarification, not sure if this is a bug.
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Jul 25, 2007 3:05 pm |
It probably should be 37. There's a lingering bug in CMUD around how it parses and recreates the ANSI colors, so I would guess that's why you're seeing the odd behavior that you are.
|
|
_________________ Asati di tempari! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Jul 25, 2007 4:57 pm |
White is a "highlighted" color. The 37 code for "white" is actually just gray. ANSI only defines 8 colors for the foreground, and 8 for the background. Most MUDs use the Bold flag to indicate a highlighted color.
There was a proposed enhancement to the ANSI color standard (sorry, but I don't have any link...it's been a long time) that adds the ANSI values 50-57 to represent the highlighted foreground colors. That's what zMUD and CMUD implement.
So, this isn't a bug, it's a feature. |
|
|
|
|
|