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 5987
- From: Stephane CHAZELAS <Stephane_CHAZELAS@xxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: sending escape sequences to print in color - thanks
- Date: Tue, 25 Mar 2003 07:33:34 +0100
- In-reply-to: <20030324215835.GM26991@xxxxxxxxxxxx>; from es@xxxxxxxxxxxx on Mon, Mar 24, 2003 at 10:58:36PM +0100
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030324210057.GK26991@xxxxxxxxxxxx> <20030324214051.GB63147@xxxxxxxxxxxxxxxx> <20030324225244.C131@xxxxxxxxxxxxxxxxxx> <20030324215835.GM26991@xxxxxxxxxxxx>
On Mon, Mar 24, 2003 at 10:58:36PM +0100, Eric Smith wrote:
[...]
> 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
>
> but alas no colors on the destination terminal (of course this does not prove
> it but trust me):
> [eric@pear ~] 3 $
> Message from eric@pear on pts/2 at 22:48 ...
> Cyan on Blue
> EOF
>
> Message from eric@pear on pts/4 at 22:52 ...
> ^[[46m^[[34mBlue on Cyan
> EOF
[...]
Be glad you can't. Some of such control sequences can serve to
put the remote terminal in an alternate charset or resize the
window to null, or iconify it or change the font to unreadable
or even in some versions of rxvt to run arbitrary commands!
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author