Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh tips plea (tip of the day)
- X-seq: zsh-users 7749
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh tips plea (tip of the day)
- Date: Fri, 23 Jul 2004 17:02:11 -0500
- In-reply-to: <20040723215034.GQ7828@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <bfs1g0phq8ojapt75pdnc19scq816grdhv@xxxxxxx> <20040723125246.Y326@willy_wonka> <20040723200401.GL7828@xxxxxxxxxxxxx> <87llhatqua.fsf@xxxxxxxxxxxxxxxx> <20040723202619.GN7828@xxxxxxxxxxxxx> <87hdrytng1.fsf@xxxxxxxxxxxxxxxx> <20040723215034.GQ7828@xxxxxxxxxxxxx>
In the last episode (Jul 23), Vincent Lefevre said:
> On 2004-07-23 14:37:18 -0700, Philippe Troin wrote:
> > I did, but I did not see the useful thing you mention.
> >
> > How is echoing ^O to the terminal helps?
>
> ^O is rmacs (end alternate character set). It is useful when ^N
> (smacs: start alternate character set) has been sent to the terminal,
> for instance after a binary file has been cat'ed.
>
> The alternate character set basically corresponds to the line
> graphics characters (replacing the normal ASCII characters).
You could also use $termcap[me] (or $terminfo[exit_attribute_mode] if
you like typing), which will turn off colors, boldface, etc as well as
being more portable. ^O is only a control character on some terminals;
on others it's a printable character.
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author