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
jpolen2
Beginner


Joined: 14 Jan 2004
Posts: 18

PostPosted: Fri Dec 21, 2007 1:21 pm   

[2.18] More ansi strangeness?
 
I noticed that with the log ansi color option enabled in the logging preferences, it logs the ansi colour codes for the mud output correctly, but attaches [2S to the beginning of each command it logs. Is this a bug?

an item
There is one obvious exit: south.
Sign.

 scout s

Black as black can be, this is the keep of Shadowkin Sin. Shadows pass around you and you notice you are surrounded by a gloomy haze. Harsh schreeches from
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jan 07, 2008 10:01 pm   
 
CMUD implements a private ANSI sequence for ESC [ xx S which is used to select a specific "style". Style 0 is the default text style, Style 1 is the information message style (and the style used for #SAY), and Style 2 is the command echo style. So that is why you are seeing those codes in your log. Normal ANSI has no way to select a style, so CMUD had to add it's own control codes for this.
Reply with quote
luggage
Novice


Joined: 20 Jul 2004
Posts: 38
Location: Australia

PostPosted: Sun Jan 13, 2008 3:17 am   
 
Well, I get something similar, but worse.

Under Zmud, I could trigger on underlined and inverse video, but cannot anymore under Cmud as the ansi escape sequences are just all .

E.g.

Zmud logged with ansi ...


colour
Current possible colour settings:

Setting Current Description
-------------------------------------
hp_low b_cyan Colour of low hitpoints
you_tell inverse Colour of you telling
friend bold Colour of friendname in cwho, who
headers bold Colour of headers on mail, notes etc
tell_you inverse Colour of tells to you
commline underline Colour of commlines
exits b_green Colour of exits in rooms
sh_injured b_yellow Colour of injured shape
sh_wounded yellow Colour of wounded shape
sh_hurt b_red Colour of hurt shape
sh_dying red Colour of dying shape

Exactly the same under Cmud with ansi logging on:

+0 316 316>colour
Current possible colour settings:

Setting Current Description
-------------------------------------
hp_low b_cyan Colour of low hitpoints
you_tell inverse Colour of you telling
friend bold Colour of friendname in cwho, who
headers bold Colour of headers on mail, notes etc
tell_you inverse Colour of tells to you
commline underline Colour of commlines
exits b_green Colour of exits in rooms
sh_injured b_yellow Colour of injured shape
sh_wounded yellow Colour of wounded shape
sh_hurt b_red Colour of hurt shape
sh_dying red Colour of dying shape

Since the ansi sequences seem the same still, I have tried using the zmud values for inverse and underline in my ansi triggers, but nothing triggered. I get the same result if I cut'n'paste a line from the output window.
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