[Konsole-devel] [Bug 65067] Alt cursur/home/end sends 2x ESC + patch fixing this

Hans de Goede j.w.r.degoede at hhs.nl
Wed Jul 21 20:09:12 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=65067      




------- Additional Comments From j.w.r.degoede hhs nl  2004-07-21 22:09 -------
Hi,

There has been some heavy discussion about xterm, terminfo and xterm clones (such as konsole) on Fedora's bugzilla, see:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=122815

As a result of this it has been decided that not debian keyb guidelines or what RH /FC used todo in the past count, but that the only thing which counts is what the current real xterm does.

So the current esc-sequences send for home and end by konsole are CORRECT.
This makes my patch which adds modifier support to the keypad and Function keys
WRONG since it changes the esc-sequences send by home and end

The original double-esc patch however stlll is CORRECT and really should be applied.

Having bindings in /etc/inputrc which contain esc-sequence which start with esc esc as Steven from Comment 5 has is simply dead wrong. The fact that he and perheps others have come to rely on a bug, doesn't mean the bug shouldn't be fixed.

In order for Steven and others to be able to still get word forward backward capibilities using modifier + arrow, konsole need to be modified to send seperate esc-sequences for modified keys, and these seperate esc-sequences
should then be added to /etc/inputrc (they might even already be there for the real xterm)

My second patch can easily be fixed to not change the esc-sequences for home and end and thus become correct. BUT there is another problem with my second patch: the real the xterm and gnome-terminal are also cabable of sending seperate esc sequences for modifier combinations, basicly they have a 3 bit number taking a bit for each modifier and then put the decimal value of this number in the esc-sequence, for konsole to mimick this it needs either:
-9 entries in the keymap file for each key, so around 200 entries
-or the capability to specify that this key can have modifiers with say
 an X or * or someother handy char in the esc-sequence which the
 konsole code then replaces by the modifier number

Which way do you want to go?

p.s.

konsole also shouldnot send ascii-del (\177) for backspace but CTRL-H, since that is what the real xterm does.



More information about the konsole-devel mailing list