Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A different approach to PROMPT_CR
- X-seq: zsh-workers 12714
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: A different approach to PROMPT_CR
- Date: Mon, 28 Aug 2000 21:47:38 +0100
- In-reply-to: ""Bart Schaefer""'s message of "Sat, 26 Aug 2000 22:27:00 -0000." <1000826222700.ZM13743@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
"Bart Schaefer" wrote:
> It might be nice if "read -t -k 0" simply returned 0 if there's pending
> input and 1 otherwise, without reading anything. Right now, -k 0 is
> treated the same as -k 1 (read always reads at least one byte).
Yes, but I had to make it read a character as a last resort since on cygwin
checking for pending input didn't work. Somebody will have to find a way
of making this work everywhere. While there about it, they could also find
a way of making the read time out on all systems, which was the other thing
I tried to do.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author