|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Thu Apr 07, 2005 5:48 am
ANSI trigger |
I'm using an ANSI trigger to capture the name of my room for a script that should help me determine the direction I flee, but for some reason this extra code is added on to the end of line. Here is the pattern I'm currently using:
I tried making it:
but that didn't seem to work. Here's a sample of what's being captured into the variable from my first trigger:
Code: |
The Fifth Chamber[0m
|
Any way I can get around having that last stuff tacked on to the end? Some roomnames end with periods and such, so I can't just do a (*)(%w), unfortunately. Any suggestions are welcome |
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
Kiasyn Apprentice
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Thu Apr 07, 2005 8:23 am |
um ^%e[36m(*)%e[0m ??
|
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Thu Apr 07, 2005 1:05 pm |
can also just remove any ansi information with the %stripansi function
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
|
|