From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20384 invoked from network); 28 Aug 2000 20:48:18 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Aug 2000 20:48:18 -0000 Received: (qmail 4182 invoked by alias); 28 Aug 2000 20:47:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12714 Received: (qmail 4175 invoked from network); 28 Aug 2000 20:47:39 -0000 To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: A different approach to PROMPT_CR In-reply-to: ""Bart Schaefer""'s message of "Sat, 26 Aug 2000 22:27:00 -0000." <1000826222700.ZM13743@candle.brasslantern.com> Date: Mon, 28 Aug 2000 21:47:38 +0100 From: Peter Stephenson Message-Id: "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 Work: pws@csr.com Web: http://www.pwstephenson.fsnet.co.uk