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

Re: zsh tips plea (tip of the day)



Vincent Lefevre <vincent@xxxxxxxxxx> writes:

> On 2004-07-23 13:23:57 -0700, Philippe Troin wrote:
> > Vincent Lefevre <vincent@xxxxxxxxxx> writes:
> > 
> > > On 2004-07-23 12:55:03 -0400, Atom 'Smasher' wrote:
> > > > in ~/.zshrc:
> > > > 
> > > > precmd () {
> > > >     print -n '\017'
> > > > }
> > > 
> > > This is really nice! Why haven't I thought about that before? :)
> > > I wonder if this shouldn't be done by zsh in standard.
> > 
> > How is that different from "setopt promptcr"?
> 
> \017 is not a CR, but a ^O (the opposite of ^N). Cat a binary file
> and you would see that this is useful. :)

I did, but I did not see the useful thing you mention.

How is echoing ^O to the terminal helps?

Phil.



Messages sorted by: Reverse Date, Date, Thread, Author