Trying to capture lines with only one text colour
Re: Trying to capture lines with only one text colour
Tried that already and it didnt work but i gave it another go with what you supplied in case i messed something up originally.
Text from mud
This is some information from the mud
color trigger on blue (colors in this post wont be exactly accurate)
Text from mud
This is some information from the mud
color trigger on blue (colors in this post wont be exactly accurate)
Appreciate the help.
Re: Trying to capture lines with only one text colour
Ah. Then you may want to use a Regex trigger with pattern (.+). Not very efficient, but it will trigger on every line. You can then manipulate via Lua as you want; the code I posted -should- work.
To be honest, I haven't spent much time with isAnsiFgColor(), so I'm just going by what the manual says it does. Heh.
To be honest, I haven't spent much time with isAnsiFgColor(), so I'm just going by what the manual says it does. Heh.
Re: Trying to capture lines with only one text colour
OK I found out how to do what i was after.
Thanks to everyone for the ideas and assistance.
This is how i did it in the end - may help someone else.
I used a perl regex trigger of "\s*\w"
Then in script the following
Thanks to everyone for the ideas and assistance.
This is how i did it in the end - may help someone else.
I used a perl regex trigger of "\s*\w"
Then in script the following