Fix all of the incorrect key mappings documented in the following table:

https://jakub.horky.net/terminal/keyname.html

The only exception is F13-F19 keys for xterm, WezTerm, and mlterm, as
there is currently no standard way to accommodate both shifted and
physical keys above F12 in terminfo.

I tested the changes live in all terminals listed in the table.

Changes:
  + abandon incorrect vt100+keypad mappings for ka1-kc3 ("cross") keypad
    keys
  + since VT100 and VT220 have exactly the same numeric keypad and its
    sequences, unify vt100+keypad and vt220+keypad, and rename references
    from vt220+keypad to vt100+keypad
  + add kpCMA, kpDOT, kpSUB, and kpZRO to vt100+keypad; also add
    vt100+keypad+emul to emulate PF1-PF4 on top row of the keypad
  + add full VT100 keypad support to nsterm-7, as it is supported
  + remove unsupported keypad app mode from xnuppc-basic
  + remove VT100 keypad support (except PF1-PF4) from xtalk and mvterm,
    since they don't support application keypad mode
  + add full VT100 keypad support to wy85-8bit and tek4105-30, as they
    support application keypad mode
  + correct xterm+keypad keys when in non-sunKeyboard mode
  + modify xterm+keypad and add xterm+keypad+noent to serve as a common
    key set for other terminals; add xterm+keypad+all and
    xterm+keypad+novt for full-featured xterm and fix xterm-vt220
  + add kbeg, kp5 keys to xterm+noapp
  + add kmenu including shifted variants to xterm+nofkeys
  + add support for shifted keypad keys as xterm+pck0
  + remove ncv from putty, since color support doesn't affect the
    features
  + add putty-xterm as the richest variant in terms of modified keys
  + add -direct and -direct16 for putty, putty-xterm, and wezterm,
    and -256color for putty-xterm
  + make vt100+keypad+emul as a base for putty+keypad
  + add putty+keypad+kp for backwards compatibility
  + fix teraterm-4.97, which no longer emulates VT220 editing keys
    based on their physical locations
  + add support for xterm shifted keys to winconsole, fix kbs and kspd
  + set numpad 5 to kbeg instead of kb5 in linux-basic, matching xterm
  + set kspd (suspend key) to the Pause key instead of ^Z in linux-basic
  + add xterm-style keypad app mode to iTerm.app, mlterm3, and st
  + add kbeg and kENT keys to putty
  + add kmenu key to mlterm2+
  + remove ka1-kc3 keys, and add kent and kbeg keys to st
  + add kbeg key to konsole-base
  + add kbeg and kmenu including shifted variants to terminology
  + update documentation of caps described in user_caps(5) man page
  + update documentation of key extended caps

These changes are relative to the version v2 (mostly suggested by
G. Branden Robinson):
  + split into series of smaller patches
  + rename kmnu to kmenu
  + slightly more detailed changelog

The list of patches follows below.

Jakub Horký (22):
  Abandon incorrect vt100+keypad mappings and unify with vt220+keypad
  Update xterm+keypad and relatives
  Add kbeg, kp5 keys to xterm+noapp
  Add kmenu including shifted variants to xterm+nofkeys
  Add support for shifted keypad keys as xterm+pck0
  Remove ncv from putty, since color support doesn't affect the features
  Add putty-xterm as the richest variant in terms of modified keys
  Add -direct and -direct16 for putty, putty-xterm, and wezterm, and
    -256color for putty-xterm
  Make vt100+keypad+emul as a base for putty+keypad
  Add putty+keypad+kp for backwards compatibility
  Fix teraterm-4.97, which no longer emulates VT220 editing keys based
    on their physical locations
  Add support for xterm shifted keys to winconsole, fix kbs and kspd
  Set numpad 5 to kbeg instead of kb5 in linux-basic, matching xterm
  Set kspd (suspend key) to the Pause key instead of ^Z in linux-basic
  Add xterm-style keypad app mode to iTerm.app, mlterm3, and st
  Add kbeg and kENT keys to putty
  Add kmenu key to mlterm2+
  Remove ka1-kc3 keys, and add kent and kbeg keys to st
  Add kbeg key to konsole-base
  Add kbeg and kmenu including shifted variants to terminology
  Update documentation of caps described in user_caps(5) man page
  Update documentation of key extended caps

 misc/terminfo.src | 417 ++++++++++++++++++++++++++++++----------------
 1 file changed, 271 insertions(+), 146 deletions(-)


base-commit: 4311b18dda3e30eed79bb7dca58cb52bab70c942
-- 
2.43.0


Reply via email to