Op 11-07-18 om 17:33 schreef David Ramsey:
> Benno Schulenberg:
>> Just like an <Esc> before a Ctrl+letter keystroke is ignored, an <Esc>
>> before an Alt+letter keystroke should be ignored too -- it should not
>> be interpreted as if the user had typed <Esc> <Esc> letter.
>
> For the record, I've tested this a bit, and it seems good to me so far.
Thanks for testing.
> Some sequences still aren't handled optimally: if you're using
> Xfce-Terminal, and press Esc followed by Alt-Shift-<left arrow> or
> Ctrl-<left arrow>, you get an "Unbound key" message, but you also get
> those without this patch applied.
Hmm. Doesn't happen here. This is probably because you are running an
older version of ncurses -- before 5.9, I believe? Or at least before
6.0.
I can reproduce it, though, when using the -K option. But... is there
still anyone who needs/uses this option?
(Weirder is that when pressing Alt+PgUp or Alt+PgDn, nano will complain
about an "Unknown sequence" but will enter "3~" into the buffer. Ouch.
Have reported this bug as https://savannah.gnu.org/bugs/?54291.)
Benno