delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/11/01:39:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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, 11 Jan 2003 00:40:52 -0600
From: Steve O <bub AT io DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [Bug] 1.3.18-1: Problem with arrow keys and rxvt/bash/mc
Message-ID: <20030111004052.A20688@fnord.io.com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5.1i

Marcel Telka wrote:
> Up/down/left/right arrows produces sometimes upper letters (for example
> 'D' while pressing left) instead of a cursor moving. To reproduce try run mc
> and press the arrow keys in blue mc's window (for moving cursor through
> files or moving cursor left-right in command line).

I'm able to reproduce this without bash, and with xterm instead of rxvt.
That narrows the problem down to some changes I made to the cygwin 
tty code. 

The change I suspect is one that writes characters one at a time to the
slave, instead of a bulk write of the entire buffer.  Thus, it's 
possible for the slave to read half of an escape sequence in a 
race condition.  I was under the impression that the slave, mc in
this case, should be able to deal with this condition, or am I mistaken?

Thanks for pointing out this test case.
-steve

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019