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

Re: zsh tips plea (tip of the day)



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