Mail Archives: cygwin-developers/1999/01/22/06:51:14
---Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp> wrote:
>
> When an arrow key is pushed repeatedly in bash executed in notty
> mode on Win9x, the escape sequence correspond to one arrow key
> is often interleaved with another one's.
>
> As a result, part of the sequence (`[D', `[C', and so on) is
> inserted into the command line instead of the cursor motion.
>
> The following patch can solve this problem.
8<
First let me say, HURRAY to a fix for this problem.
I've thought this problem to be a readline library problem as not only
does cygwin bash have a problem; but also the Win32 native VIM-4.7
program. I've seen it happen on NT, also when editing a file on the
diskette or when the working directory was the diskette.
I also saw this with bash when I was trying to build a native version
of bash which I didn't get completed but got along far enough to have
been able to execute single commands.
I've said all of this to say the problem isn't winsup specific. In
all cases that I've seen what happens is that the type ahead buffer is
read in the wrong order. Therefore the reason the arrow keys dump
it's data is because it is read as D[\e where \e is the escape
character. I've also seen that if there is a wait due to system busy
and I type ahead the result is the command in mirror image. Therefore
`cd /to/some/directory' ends up being `yrotcerid/emos/to/ dc'.
So, your change may help but I don't think it will get rid of it
entirely.
==
- \\||//
-------------------o0O0--Earnie--0O0o-------------------
-- earnie_boyd AT yahoo DOT com --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------
PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
- Raw text -