Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Colorizing the output of watch
- X-seq: zsh-users 13133
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Colorizing the output of watch
- Date: Mon, 11 Aug 2008 16:51:19 +0100
- In-reply-to: <080811083333.ZM28147@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70807080738x1b80092u9736203b46ff9724@xxxxxxxxxxxxxx> <20080811142512.GB6317@xxxxxxxxx> <080811083333.ZM28147@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> On Aug 11, 10:25am, Russell Hoover wrote:
> }
> } export WATCHFMT=" %D [%B%t%b] %B%n%b \
> } %(a:%Blogged on%b:logged off) %B%l%b from %B%M%b"
> }
> } But I don't know how to put this text in color. It would be great to
> } have "logged on" appear in green, say, and "logged off" in, say, blue
> } or some other color.
>
> In the very latest zsh you can replace %B with %F{green} and %b with %f.
This hasn't been added to the watch code yet. It should be a fairly
simple job for someone.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author