Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 28 Dec 2002 01:25:14 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Cc: bub AT io DOT com Subject: Re: small tty problem? Re: Updated: cygwin-1.3.18-1 Message-ID: <20021228062514.GA20824@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, bub AT io DOT com References: <20021225233434 DOT GA5624 AT redhat DOT com> <3 DOT 0 DOT 5 DOT 32 DOT 20021225190753 DOT 00837100 AT h00207811519c DOT ne DOT client2 DOT attbi DOT com> <20021227024759 DOT GA14435 AT redhat DOT com> <20021227215045 DOT GA35279159 AT HPN5170X> <20021227222900 DOT GA29157 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021227222900.GA29157@redhat.com> User-Agent: Mutt/1.5.1i On Fri, Dec 27, 2002 at 05:29:00PM -0500, Christopher Faylor wrote: >On Fri, Dec 27, 2002 at 04:50:45PM -0500, Pierre A. Humblet wrote: >>On Thu, Dec 26, 2002 at 09:47:59PM -0500, Christopher Faylor wrote: >>> >^ note "q" before the prompt. >>> >>> Interesting problem. Should be fixed in current cvs. >> >>Thanks Chris, looks fine here. But there is something similar... >>WinME, latest everything, Cygwin from cvs, CYGWIN undefined >> >>try.sh is a 5 line demo script >># /bin/bash >> >>echo -n "Do you want to insert NL? (yes/no) " >>read answer >>echo "The answer was $answer" >> >>~: ./try.sh >>Do you want to insert NL? (yes/no) yes >>The answer was yes >>~: ssh localhost >> >>You are successfully logged in to this server!!! >> >>~: ./try.sh >>Do you want to insert NL? (yes/no) yesThe answer was yes <= NO NL after yes >> <= Extra NL >>~: > >This sounds like an excellent time for 1) you to learn tty internals or >2) Steve to step in. I've been fixing problems in Steve's recent tty >changes and I think I'd like to enjoy my vacation and let someone else >take over from here. Well, surprise, this bugged me enough that I had to track it down. The order of acceptance of input and echoing of input seemed to have been changed by Steve's recent patches, so I put it back the way it was before. In case anyone is curious (hah!) this code is in fhandler_termios.cc in the 'line_edit' routine that Steve has been hacking on heavily. Sigh. 1:30 AM. I've gotta stop doing this. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/