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

Re: Colorizing the output of watch



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