![](templates/Classic/images/spacer.gif) |
rck Novice
Joined: 26 Oct 2005 Posts: 32 Location: California
|
Posted: Thu Dec 20, 2007 1:54 am
%trigger - but with ANSI? |
I've looked at the help docs, it notes %trigger contains the full line of what triggered the currently executing trigger without ANSI, but is there a version that contains the ANSI codes used to display as well?
|
|
|
![](templates/Classic/images/spacer.gif) |
Larkin Wizard
![](images/avatars/169979204542c57c7448618.gif)
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Thu Dec 20, 2007 3:39 am |
Make your trigger an ANSI trigger, and it should allow you to capture the full ANSI sequence with the right wildcards.
|
|
|
![](templates/Classic/images/spacer.gif) |
Vijilante SubAdmin
![](images/avatars/7230815434153eca6be3ad.gif)
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Dec 20, 2007 3:40 am |
There isn't any, but you can make one.
Code: |
#VAR AnsiLine "" {}
#TRIGGER "AnsiCap" {^(&AnsiLine)$} {} "" {color}
#CALL %priority(AnsiCap,"trigger",1) |
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
![](templates/Classic/images/spacer.gif) |
rck Novice
Joined: 26 Oct 2005 Posts: 32 Location: California
|
Posted: Thu Dec 20, 2007 4:15 am |
Thanks for the suggestion, I didn't realize with ANSI Trigger enabled the provided matched data would also include the ansi sequences, with that in mind I'll just enable ANSI for the trigger I need it for, thanks! :)
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|