Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sending escape sequences to print in color - thanks
- X-seq: zsh-users 5984
- From: Geoff Wing <mason@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: sending escape sequences to print in color - thanks
- Date: Mon, 24 Mar 2003 22:32:23 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultants
- References: <20030324225244.C131@xxxxxxxxxxxxxxxxxx> <20030324215835.GM26991@xxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
Eric Smith <es@xxxxxxxxxxxx> typed:
: But one use I was looking for was to write(1) to another terminal viz.
: echotc AF 6 ; echotc AB 4 ; echo "Cyan on Blue"|write eric /dev/pts/3
: or
: print "$bg[cyan]$fg[blue]Blue on Cyan"|write eric /dev/pts/3
Generally you can't use write because most write programmes make control
characters visible, so escape will become the two characters ^ and [
However, on a local machine you may be able to do
% print "$bg[cyan]$fg[blue]Blue on Cyan" >> /dev/pts/3
Regards,
Geoff
Messages sorted by:
Reverse Date,
Date,
Thread,
Author