|
jpolen2 Beginner
Joined: 14 Jan 2004 Posts: 18
|
Posted: 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?
[37man item[0m
[32mThere is one obvious exit: south[37m.[0m
[37mSign.[0m
[37m [2Sscout s[0m
[37mBlack as black can be, this is the keep of Shadowkin [1;34mSin[0;37m. Shadows pass around you and you notice you are surrounded by a gloomy haze. Harsh schreeches from[0m |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
luggage Novice
Joined: 20 Jul 2004 Posts: 38 Location: Australia
|
Posted: 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 [0S.
E.g.
Zmud logged with ansi ...
[53mcolour[0m
Current possible colour settings:
Setting Current Description
-------------------------------------
hp_low [1;36mb_cyan [0mColour of low hitpoints
you_tell [7;32minverse [0mColour of you telling
friend [1;32mbold [0mColour of friendname in cwho, who
headers [1;32mbold [0mColour of headers on mail, notes etc
tell_you [7;32minverse [0mColour of tells to you
commline [4;32munderline [0mColour of commlines
exits [1;32mb_green [0mColour of exits in rooms
sh_injured [1;33mb_yellow [0mColour of injured shape
sh_wounded [33myellow [0mColour of wounded shape
sh_hurt [1;31mb_red [0mColour of hurt shape
sh_dying [31mred [0mColour of dying shape
Exactly the same under Cmud with ansi logging on:
[0S+0 316 316>[2Scolour[0m
[0SCurrent possible colour settings:[0m
[0SSetting Current Description[0m
[0S-------------------------------------[0m
[0Shp_low [1;36mb_cyan [0SColour of low hitpoints[0m
[0Syou_tell [0Sinverse [0SColour of you telling[0m
[0Sfriend [0Sbold [0SColour of friendname in cwho, who[0m
[0Sheaders [0Sbold [0SColour of headers on mail, notes etc[0m
[0Stell_you [0Sinverse [0SColour of tells to you[0m
[0Scommline [0Sunderline [0SColour of commlines[0m
[0Sexits [1;32mb_green [0SColour of exits in rooms[0m
[0Ssh_injured [1;33mb_yellow [0SColour of injured shape[0m
[0Ssh_wounded [33myellow [0SColour of wounded shape[0m
[0Ssh_hurt [1;31mb_red [0SColour of hurt shape[0m
[0Ssh_dying [31mred [0SColour of dying shape[0m
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. |
|
|
|
|
|
|
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
|
|