From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12787 invoked from network); 26 Aug 2000 22:27:45 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Aug 2000 22:27:45 -0000 Received: (qmail 29791 invoked by alias); 26 Aug 2000 22:27:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12706 Received: (qmail 29782 invoked from network); 26 Aug 2000 22:27:11 -0000 From: "Bart Schaefer" Message-Id: <1000826222700.ZM13743@candle.brasslantern.com> Date: Sat, 26 Aug 2000 22:27:00 +0000 In-Reply-To: Comments: In reply to Zefram "Re: A different approach to PROMPT_CR" (Aug 26, 9:46pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Zefram Subject: Re: A different approach to PROMPT_CR Cc: zsh-workers@sunsite.auc.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 26, 9:46pm, Zefram wrote: } Subject: Re: A different approach to PROMPT_CR } } This will eat any typeahead. Actually, if an "R" is typed ahead it'll } get confused. Hmm, what will "stty -echo" do to typeahead? Would it suffice to insert if read -t -k 1 then print -z $REPLY return 0 fi before the stty call? 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). -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net