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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
wobb
Newbie


Joined: 06 Jul 2004
Posts: 1

PostPosted: Tue Jul 06, 2004 9:59 pm   

escape codes in log file
 
When I log in ansi color, the log files are fine. The "esc" char however becomes a "box" to other native windows programs (notepad, internet browsers etc...). I am developing a system where our players can post their log files, and they will display in color, however I can't get rid of that box. I've tried to parse out all the codes but stripping 0x1b doesn't get rid of the all the boxes.

What happens to the escape codes when windows gets ahold of them? Does it become another character? Any help appreciated!

wobb
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Jul 06, 2004 10:45 pm   
 
Some of the boxes could be caused by errant 0x0A or 0x0D's. Windows is quite specific about requiring a CR+LF at the end of each line.

If your boxes are at the end of what should be lines then this is the problem. Make sure all 0x0A's are preceeded by 0xOD and all all 0x0D's are followed by 0x0A.

Otherwise please provide some example of the problem. While it may be beyond the scope of these forums we still try to help.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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