Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Colored WATCHFMT ?



On Sat, 28 Jul 2001, +14:07:33 EEST (UTC +0300),
Juhapekka Tolvanen <juhtolv@xxxxxxxxx> pressed some keys:

> 
> Is it possible to put colors to WATCHFMT? Here is what I have achieved by
> far:
> 
> WATCH_COLOR_MY_NUMBER_DATE="%{"$'\e[32;40m'"%}"
> 
> WATCH_COLOR_RESET="%{"$'\e[39;49;00m'"%}"
> 
> export WATCHFMT="[%B${WATCH_COLOR_MY_NUMBER_DATE}${MY_NUMBER_DATE} ${MY_TIME}${WATCH_COLOR_RESET}%b] %B%n%b has %a %B%l%b from %B%M%b"
> 

Ha! I figured it out!

WATCH_COLOR_RESET=$'\e[39;49;00m'

WATCH_COLOR_MY_NUMBER_DATE=$'\e[32;40m'

export WATCHFMT="[%B${WATCH_COLOR_MY_NUMBER_DATE}${MY_NUMBER_DATE} ${MY_TIME}${WATCH_COLOR_RESET}%b] %B%n%b has %a %B%l%b from %B%M%b"

But is that safe?

P.S: I do not subscribe to these lists etc. yada yada yada ...

-- 
Juhapekka "naula" Tolvanen * * U of Jyväskylä * juhtolv@xxxxxxxxx
http://www.st.jyu.fi/~juhtolv/spam.html * STRAIGHT BUT NOT NARROW
-----------------------------------------------------------------
"Bestrafe mich. bestrafe mich. Stroh wird Gold und Gold wird
Stein. deine Grösse macht mich klein. du darfst mein Bestrafer
sein. Der Herrgott nimmt, der Herrgott gibt."           Rammstein



Messages sorted by: Reverse Date, Date, Thread, Author