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
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sun May 01, 2011 5:45 am   

[334Pro] Problem with ANSI trigger (Solved, I think)
 
My ANSI triggers have suddenly stopped working correctly. The ANSI codes generated are uniformly wrong. Instead of giving me the entire sequence for a particular color, the trigger is dropping the most important part, the color code itself. So if I expect to see bright white ESC[1;37m I will see ESC[1m instead. That is true for all color sequences.
Code:

// Actual string:
$string1 = ESC[1;31m(K)ESC[1;34m(M)ESC[1;37m(G)ESC[1;36m(H) ESC[1;32mGreenman's Saucy Sack ESC[1;37m(ESC[1;32m121ESC[1;37m)ESC[0m

// What the trigger delivers:
$string2 = ESC[1m(K)ESC(M)ESC(G)ESC(H) ESCGreenman's Saucy Sack ESCESC(ESC121ESC)ESC[0m

// Actual string:
$string3 = ESC[1;31m(K)ESC[1;34m(M)ESC[1;37m(G)ESC[1;36m(H) ESC[0;37ma ESCBag of ESC[1;31mAardwolf ESC(ESC[1;32m98)ESC[0m

// What the trigger delivers:
$string4 = ESC ESC(K)ESC(M)ESC(G)ESC(H) ESC[0ma ESCBag of ESCAardwolfESC ESC(ESC98ESC)ESC[0m

It could very well be that I changed something that caused this, but the routines have been set for a while now and there was no reason to touch them. I noticed the problem when I started querying the stored data and saw that the color was gone.
I can't say for sure whether XTERM plays a role or not, I turned it off server side and it didn't make any difference.

EDIT: I removed the trigger-on-trigger option and the codes came back on the test case correctly. However, the original trigger did not have trigger-on-trigger checked.
_________________
Sic itur ad astra.
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