Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Malaphus Rousseau
Newbie


Joined: 25 Jun 2007
Posts: 6

PostPosted: 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.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net