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

Re: sending escape sequences to print in color



On Mon, Mar 24, 2003 at 03:40:51PM -0600, Dan Nelson wrote:
> In the last episode (Mar 24), Eric Smith said:
> > How do I print (shell builtin) or scho or better still write (1)
> > to screen and produce color characters or inverse video.
> 
> echotc AF 6 ; echotc AB 4 ; echo "Cyan on Blue!"

Or 
autoload colors
colors

print "$bg[cyan]$fg[blue]Blue on Cyan!"

-- 
Stéphane



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