Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Colored WATCHFMT ?
- X-seq: zsh-users 4061
- From: Juhapekka Tolvanen <juhtolv@xxxxxxxxx>
- To: zsh-users mailing list <zsh-users@xxxxxxxxxxxxxx>
- Subject: Re: Colored WATCHFMT ?
- Date: Sat, 28 Jul 2001 14:28:30 +0300
- In-reply-to: <20010728140733.A23686@xxxxxxxxxxxxxxx>; from juhtolv@xxxxxxxxx on Sat, Jul 28, 2001 at 02:07:33PM +0300
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Overhovel of Jyväskylä
- References: <20010728140733.A23686@xxxxxxxxxxxxxxx>
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