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
Dwoggurd
Wanderer


Joined: 29 Jan 2008
Posts: 63

PostPosted: Sat Jun 07, 2008 5:06 pm   

[2.26] ANSI colors in logs
 
My own commands do not have correct ansi sequences in ansi logs.
They are saved with ESC]0m instead of default (yellow?) color.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Jun 07, 2008 5:35 pm   
 
CMUD now uses styles for colours, which means that colours that aren't explicitly set by the MUD (ie, that're using your style colours) won't be saved. There's no way to save this info into an ANSI log because styles can use any colour with a hex code. I'm not sure whether using the HTML logging option will help with this, but it's worth a try.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Dwoggurd
Wanderer


Joined: 29 Jan 2008
Posts: 63

PostPosted: Sat Jun 07, 2008 5:56 pm   
 
That's annoying :)

It worked in 2.18 (not sure about 2.25), I guess things have changed. It looks like HTML logging is the only option now. Hopefully HTML bugs will be fixed or I'm screwed.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 09, 2008 5:34 pm   
 
In the future I'm going to try and improve this by comparing your Style setting with your current ANSI colors to see if it can find the "closest match" for the ANSI color that can be used for your commands. But Fang is correct that ANSI color doesn't support Styles, since Styles allow you to set your command color to *any* color instead of just the normal 8/16 ANSI colors.

So HTML isn't the only logging option, it's just that ANSI cannot support more than 8/16 colors.
Reply with quote
Dwoggurd
Wanderer


Joined: 29 Jan 2008
Posts: 63

PostPosted: Mon Jun 09, 2008 7:43 pm   
 
As I understand in the previous versions CMUD used "fake" ANSI colors like ESC]0S, ESC]1S (etc) for styles and they could be set to any color as well. That worked for me but I agree that it's not a "fair" solution.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Jun 09, 2008 7:57 pm   
 
It still does internally, AFAIK, but it was a bug that they were written to the log, and now they're not.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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