Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sending escape sequences to print in color
- X-seq: zsh-users 5980
- From: Stephane CHAZELAS <Stephane_CHAZELAS@xxxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- Subject: Re: sending escape sequences to print in color
- Date: Mon, 24 Mar 2003 22:52:44 +0100
- Cc: Eric Smith <es@xxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <20030324214051.GB63147@xxxxxxxxxxxxxxxx>; from dnelson@xxxxxxxxxxxxxxx on Mon, Mar 24, 2003 at 03:40:51PM -0600
- Mail-followup-to: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>, Eric Smith <es@xxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030324210057.GK26991@xxxxxxxxxxxx> <20030324214051.GB63147@xxxxxxxxxxxxxxxx>
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