|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sat Jan 06, 2007 8:46 am
Ansi Triggers |
Does CMUD support matching ansi in patterns? I can't seem to get any of my ansi triggers to work at all in CMUD.
If so, someone have an example?
I need to match just the name and the location of something like this:
Billy Bob, The Silly Slob ((house) The Log Cabin)
Where "Bob" is the actual name and not Billy and colored in cyan from the MUD. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Jan 06, 2007 2:29 pm |
There's another thread about ANSI triggers I just replied in where the person had no problem matching.
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sat Jan 06, 2007 8:55 pm |
Fang Xianfu wrote: |
There's another thread about ANSI triggers I just replied in where the person had no problem matching. |
Well mind telling me the Subject or point me to it? There are hundreds of threads on here. Thanks. |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sun Jan 07, 2007 10:37 am |
They still don't work in triggers.
|
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Sun Jan 07, 2007 3:27 pm |
my ansi triggers i had in zmud also didn't port over right to cmud. for example %e[1;31m(*) works great in zmud, but not in cmud
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Tue Feb 13, 2007 2:34 am |
Would someone mind giving a working example? No matter what I do I cannot get these to work in CMUD.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Feb 13, 2007 8:49 pm |
I'm not sure how anyone would be able to make this work since this is a known bug in CMUD. The %e in the pattern is not expanded, so it's not getting the escape character code into the pattern string.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Feb 13, 2007 10:14 pm |
Btw, this is now fixed for the next version.
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Tue Feb 13, 2007 11:18 pm |
guess that might explain it then! heh
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Feb 14, 2007 2:10 am |
Zugg wrote: |
I'm not sure how anyone would be able to make this work since this is a known bug in CMUD. The %e in the pattern is not expanded, so it's not getting the escape character code into the pattern string. |
By not using %e:
NiTok wrote: |
Pattern:
[1;33m(%1)[0m~. |
|
|
|
|
|
|