[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39645] weird characters inserted when searchi
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #39645] weird characters inserted when searching in readline |
Date: |
Fri, 06 Sep 2013 03:51:50 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36 |
Follow-up Comment #2, bug #39645 (project octave):
I believe this is the relevant readline feature that is triggering this bug:
http://git.savannah.gnu.org/cgit/readline.git/tree/isearch.c#n387
In short, the escape key terminates the interactive search mode. If other
characters are read within a certain timeout, the escape character is sent
again so that they total key combination is preserved. This is not happening
in Octave.
I don't think this is a timeout problem, however. I made a hack to set the
readline input timeout to a full second. Now it simply pauses for a second
before displaying "[D" when I press the left arrow key.
Also if I type fast enough I can get readline to accept sequences beginning
with escape while in the search mode, for example Esc u, but entering the
Alt-u combination fails and just prints "u".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39645>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39645] weird characters inserted when searching in readline,
Mike Miller <=