TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

having trouble with Prompt & Colors

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
gfbaer



Joined: 08 Oct 2007
Posts: 33

PostPosted: Sat Jun 11, 2011 12:19 pm    Post subject: having trouble with Prompt & Colors Reply with quote

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 :

Code:
< P: std >


"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
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sat Jun 11, 2011 2:17 pm    Post subject: Reply with quote

You could try:

#prompt {~^\e[32m<%1> \e[0m} {%0}
Back to top
View user's profile Send private message Send e-mail
gfbaer



Joined: 08 Oct 2007
Posts: 33

PostPosted: Sat Jun 11, 2011 2:54 pm    Post subject: Reply with quote

THANKS!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group