| View previous topic :: View next topic |
| Author |
Message |
gfbaer
Joined: 08 Oct 2007 Posts: 33
|
Posted: Sat Jun 11, 2011 12:19 pm Post subject: having trouble with Prompt & Colors |
|
|
Hello!
I'm having a bit of trouble with #prompt's not taking color with them. Here is an example string :
| Code: | | < T: myname TC: excellent E: mobname EC: few scratches P: std > |
Each of those elements has different colors. For example here is the #config convert of that line :
| Code: | \e[32m< \e[0;34;1mT: Rrema\e[0m TC:\e[0;32m excellent \e[0;31mE: shady\e[0;36m EC:\e[0;33m few scratches\e[0;32m
\e[0m\e[0;37m\e[0m0;32m> \e[0m |
the part that says excellent/few scratches, will change, so excellent has green ansi, few scratches has brown, etc..
that is the prompt when i'm in combat, when not in combat it looks like :
"std" could be sit/knl/recl..
So my prompt looks like :
| Code: | | #prompt {<%0P: %1 >} { %0p: %1} {2} |
If I put a tilde ~ like this :
| Code: | | #prompt {~<%0P: %1 >} { %0p: %1} {2} |
The trigger does not match at all. Since the ansi changes for that line, I want to just grab whats in %0 there with ansi and put it in my prompt on line 2 as I have shown.
I'm running tintin++ 1.99.9 on linux, $TERM = xterm
Any suggestion?
Thanks |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Sat Jun 11, 2011 2:17 pm Post subject: |
|
|
You could try:
#prompt {~^\e[32m<%1> \e[0m} {%0} |
|
| Back to top |
|
 |
gfbaer
Joined: 08 Oct 2007 Posts: 33
|
Posted: Sat Jun 11, 2011 2:54 pm Post subject: |
|
|
| THANKS! |
|
| Back to top |
|
 |
|