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

Re: A different approach to PROMPT_CR



"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