|
Silanus Beginner
Joined: 25 Nov 2005 Posts: 13
|
Posted: Sun Dec 04, 2005 1:01 am
Capturing and Coloring Prompt info. |
I’m sure this is one of those questions I could have researched better to answer myself but I tried and could not find it.
I want to color a part of my prompt to black (so it won’t show up on my display) and capture it to a variable and display that on my customized status bar. I already know how to display variable information there but am having trouble capturing the variable information and coloring it.
Here’s what I have.
< prompt stuff blah blah > 234#gold 134#silv
I’m trying to use:
#TRIGGER {(%d)#gold (%d)#silv} {#VAR %1 gold; #VAR %2 silv; #CW black}
But as you know, it’s not working.
Am I even going about this the right way?
My only code experience is with the stuff I’ve managed to hack together for Zmud. Can you recommend a good hard print book to help with some coding? Is this similar to C or some other code language? The help files are great but some things are confusing, like should I use #PCOL or #CW for the above problem? Having no code knowledge to draw from make those help files indecipherable for me.
Thanks again. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Dec 04, 2005 2:39 am |
Cple of problems like backwards variable assignments etc and you can use PSUB! and other hacks :p
#TRIGGER {(&%d{gold}~#gold &%d{silv}~#silv)} {#Psub {""} %x1} "" {prompt|nocr}
Edit: TonDiening added the # to #Psub |
|
|
|
|
|