Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: 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[1m(M)ESC[1m(G)ESC[1m(H) ESC[1mGreenman's Saucy Sack ESC[0mESC[1m(ESC[1m121ESC[1m)ESC[0m
// Actual string:
$string3 = ESC[1;31m(K)ESC[1;34m(M)ESC[1;37m(G)ESC[1;36m(H) ESC[0;37ma ESC[1;31mBag of ESC[1;31mAardwolf ESC[1;37m(ESC[1;32m98[1;37m)ESC[0m
// What the trigger delivers:
$string4 = ESC[1m ESC[1m(K)ESC[1m(M)ESC[1m(G)ESC[1m(H) ESC[0ma ESC[1mBag of ESC[1mAardwolfESC[0m ESC[1m(ESC[1m98ESC[1m)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. |
|