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

Re: zsh tips plea (tip of the day)



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. :)

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
Championnat International des Jeux Mathématiques et Logiques, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



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