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

Re: If then Prompt




----- Original Message ----- From: "Peter Stephenson" <pws@xxxxxxx>
To: <zsh-users@xxxxxxxxxx>
Sent: Friday, May 25, 2007 9:39 AM
Subject: Re: If then Prompt


"Brian K. White" wrote:
From: "Seth Kurtzberg" <seth@xxxxxxx>
To: <zsh-users@xxxxxxxxxx>
Sent: Friday, May 25, 2007 9:04 AM
Subject: RE: If then Prompt

> [ -z "$MYTERM" ] && read -s -t 1 -p `echo -en "\005"` MYTERM    # bash
> only
> if I could just get rid of those backticks...maybe binary edit the > script,
> never tried...

use $'\005' instead of the backtick expression.  This works in both bash
and zsh.

Niiiice. Thanks much.

Brian K. White    brian@xxxxxxxxx    http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro  BBx    Linux  SCO  FreeBSD    #callahans  Satriani  Filk!



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