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

Signed-off-by: Jakub Horký <[email protected]>
---
 misc/terminfo.src | 157 +++++++++++++++++++++++-----------------------
 1 file changed, 77 insertions(+), 80 deletions(-)

diff --git a/misc/terminfo.src b/misc/terminfo.src
index 1f31a52a..8b462d94 100644
--- a/misc/terminfo.src
+++ b/misc/terminfo.src
@@ -2414,61 +2414,39 @@ vt52+arrows|cursor keys for VT52,
 # generates in Application Keypad mode (where "$" means the ESC
 # character).  The third line contains two items, first the mapping of
 # the key in terminfo, and then in termcap.
+#
 #   _______________________________________
 #  |   PF1   |   PF2   |   PF3   |   PF4   |
 #  |   $OP   |   $OQ   |   $OR   |   $OS   |
 #  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
 #  |    7         8         9         -    |
 #  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
-#  |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
+#  |_ka1__K1_|___ka2___|_ka3__K3_|__kpSUB__|
 #  |    4    |    5    |    6    |    ,    |
 #  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
-#  |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
+#  |___kb1___|_kb2__K2_|___kb3___|__kpCMA__|
 #  |    1    |    2    |    3    |         |
 #  |   $Oq   |   $Or   |   $Os   |  enter  |
-#  |_ka1__K1_|_kb2__K2_|_ka3__K3_|  $OM    |
+#  |_kc1__K4_|___kc2___|_kc3__K5_|  $OM    |
 #  |         0         |   .     |         |
 #  |        $Op        |  $On    |         |
-#  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
+#  |_______kpZRO_______|__kpDOT__|_kent_@8_|
+#
+# Note that ka2, kb1, kb3 and kc2 are extended caps which have no termcap
+# equivalent.
 #
-# Note however, that the arrangement of the 5-key ka1-kc3 do not follow the
-# terminfo guidelines.  That is a compromise used to assign the remaining
-# keys on the keypad to kf5-kf0, used on older systems with legacy termcap
-# support:
-vt100+keypad|DEC VT100 numeric keypad no fkeys,
-       ka1=\EOq, ka3=\EOs, kb2=\EOr, kc1=\EOp, kc3=\EOn,
-vt100+pf1-pf4|DEC VT100 PF1-PF4,
+vt100+pf1-pf4|DEC VT100/VT220 PF1-PF4,
        kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
-vt100+pfkeys|DEC VT100 numeric keypad (kf1-kf4),
-       kent=\EOM, use=vt100+pf1-pf4, use=vt100+keypad,
-vt100+fnkeys|DEC VT100 numeric keypad (kf0-kf10),
-       kf0=\EOy, kf10=\EOx, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl,
-       kf9=\EOw, use=vt100+pfkeys,
-#
-# A better adaptation to modern keyboards such as the PC's, which have a dozen
-# function keys and the keypad 2,4,6,8 keys are labeled with arrows keys, is to
-# use the 5-key arrangement to model the arrow keys as suggested in the
-# terminfo guidelines:
-#   _______________________________________
-#  |   PF1   |   PF2   |   PF3   |   PF4   |
-#  |   $OP   |   $OQ   |   $OR   |   $OS   |
-#  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
-#  |    7         8         9         -    |
-#  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
-#  |_ka1__K1_|_________|_ka3__K3_|_________|
-#  |    4    |    5    |    6    |    ,    |
-#  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
-#  |_________|_kb2__K2_|_________|_________|
-#  |    1    |    2    |    3    |         |
-#  |   $Oq   |   $Or   |   $Os   |  enter  |
-#  |_kc1__K4_|_________|_kc3__K5_|  $OM    |
-#  |         0         |   .     |         |
-#  |        $Op        |  $On    |         |
-#  |___________________|_________|_kent_@8_|
 #
-vt220+keypad|DEC VT220 numeric keypad,
-       ka1=\EOw, ka3=\EOy, kb2=\EOu, kc1=\EOq, kc3=\EOs, ka2=\EOx,
-       kb1=\EOt, kb3=\EOv, kc2=\EOr, use=vt100+pfkeys,
+vt100+keypad|vt220+keypad|DEC VT100/VT220 numeric keypad,
+       ka2=\EOx, kb1=\EOt, kb3=\EOv, kc2=\EOr,
+       kpCMA=\EOl, kpDOT=\EOn, kpSUB=\EOm, kpZRO=\EOp,
+       kent=\EOM, ka1=\EOw, ka3=\EOy, kb2=\EOu, kc1=\EOq, kc3=\EOs,
+       use=vt100+pf1-pf4,
+#
+vt100+keypad+emul|DEC VT100/VT220 numeric keypad with PF1-PF4 emulation,
+       kpNUM=\EOP, kpDIV=\EOQ, kpMUL=\EOR, kpSUB=\EOS,
+       use=vt100+keypad,
 #
 vt100+enq|ncurses extension for VT100-style ENQ,
        u8=\E[?1;2c, use=ansi+enq,
@@ -2519,7 +2497,7 @@ vt100|vt100-am|DEC VT100 (w/advanced video),
            %;m%?%p9%t\016%e\017%;$<2>,
        smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m$<2>,
        use=ansi+csr, use=ansi+pp, use=decid+cpr, use=vt100+4bsd,
-       use=vt100+fnkeys,
+       use=vt100+keypad,
 
 vt100+4bsd|DEC VT100 from 4.0BSD,
        am, msgr,
@@ -2858,7 +2836,7 @@ vt320|vt300|DEC VT320 7 bit terminal,
        use=ansi+csr, use=ansi+cup, use=ansi+enq, use=ansi+erase,
        use=ansi+idl, use=ansi+local, use=ansi+sgrso,
        use=ansi+sgrul, use=dec+pp, use=dec+sl, use=vt220+cvis,
-       use=vt220+keypad, use=vt220+sfkeys, use=vt220+ufkeys,
+       use=vt100+keypad, use=vt220+sfkeys, use=vt220+ufkeys,
 
 vt320-nam|vt300-nam|DEC VT320 7 bit terminal with no am to make SAS happy,
        am@,
@@ -3090,10 +3068,10 @@ vt525-w|DEC VT525 in wide mode,
 #
 # In trying to get the function keys to work, I had to cobble my own
 # terminfo.src entry, since the existing vt520 entry doesn't include most of
-# the function keys.  If I blend the entries for "vt420f" and "vt220+keypad"
+# the function keys.  If I blend the entries for "vt420f" and "vt100+keypad"
 # I seem to get them all -Mike Gran
 vt520ansi|Boundless VT520 ANSI,
-       use=ansi+rca, use=vt420f, use=vt220+keypad,
+       use=ansi+rca, use=vt420f, use=vt100+keypad,
        use=ansi+tabs,
 
 #### VT100 emulations
@@ -3357,7 +3335,7 @@ nsterm+7|AppKit Terminal.app v41+ basic capabilities 
w/ASCII charset,
        sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, tbc=\E[3g,
        use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
        use=ansi+local, use=ansi+sgrbold, use=vt100+enq,
-       use=vt100+pfkeys,
+       use=vt100+keypad,
 
 nsterm+acs|AppKit Terminal.app v41+ basic capabilities w/VT100 
alternate-charset,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
@@ -3651,7 +3629,7 @@ iTerm.app|iterm|iTerm.app terminal emulator for Mac OS X,
        use=ansi+csr, use=ansi+enq, use=ansi+erase, use=ansi+idc,
        use=ansi+idl, use=ansi+local, use=ansi+rca2,
        use=ansi+sgrso, use=ansi+sgrul, use=vt100+4bsd,
-       use=vt100+keypad, use=vt100+pfkeys, use=xterm+r5+fkeys,
+       use=vt100+keypad, use=xterm+r5+fkeys,
        use=xterm+alt47, use=xterm+sl-twm, use=xterm+x11mouse,
        use=xterm+256setaf, use=vt220+cvis,
 
@@ -3865,13 +3843,12 @@ xnuppc+basic|Darwin PowerPC console basic capabilities,
        it#8,
        bold=\E[1m, cr=\r, dsl=\E]2;\007, el1=\E[1K, ht=^I, hts=\EH,
        ind=\n, kbs=^?, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
-       kcuu1=\EOA, rev=\E[7m, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
+       kcuu1=\EOA, rev=\E[7m, ri=\EM, rmam=\E[?7l,
+       rs2=\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
-       sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, tbc=\E[3g,
+       sgr0=\E[m, smam=\E[?7h, tbc=\E[3g,
        use=ansi+csr, use=ansi+cup, use=ansi+erase,
        use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
-       use=vt100+keypad,
 
 xnuppc+c|Darwin PowerPC console ANSI color support,
        ncv#32, use=klone+color,
@@ -4238,7 +4215,7 @@ putty|PuTTY terminal emulator,
        use=klone+color, use=klone+sgr, use=putty+cursor,
        use=putty+fnkeys, use=report+da2, use=vt220+pcedit,
        use=xterm+alt1049, use=vt102+enq, use=xterm+sm+1006,
-       use=xterm+sl, use=vt100+fnkeys, use=putty+keypad,
+       use=xterm+sl, use=vt100+keypad+emul, use=putty+keypad,
        use=vt220+cvis,
 
 # older versions (e.g., before 0.71) of PuTTY used a shift-modifier to toggle
@@ -4999,7 +4976,7 @@ xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 
Window System),
        use=ansi+idc, use=ansi+idl, use=ansi+inittabs,
        use=ansi+local, use=ansi+rca2, use=xterm+alt47,
        use=xterm+kbs, use=vt100+enq, use=xterm+r5+fkeys,
-       use=ecma+color, use=vt220+cvis, use=vt220+keypad,
+       use=ecma+color, use=vt220+cvis, use=vt100+keypad,
        use=vt220+pcedit, use=vt220+sfkeys,
 
 # This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
@@ -5315,19 +5292,19 @@ xterm+alt+title|xterm 90 and 251 features combined,
 # With the VT220 keypad block that uses the 1-9 keys as suggested in
 # terminfo(5), the other keys can be handled with user-defined capabilities:
 #
-#   _______________________________________
+#   ______________________________________
 #  | NumLock |    /    |    *    |    -    |
-#  |         |   $Oo   |   $Oj   |   $OS   |
+#  |         |   $Oo   |   $Oj   |   $Om   |
 #  |_________|__kpDIV__|__kpMUL__|__kpSUB__|
-#  |    7         8         9    |    +    |
+#  |    7    |    8    |    9    |    +    |
 #  |   $Ow   |   $Ox   |   $Oy   |   $Ok   |
-#  |_ka1__K1_|_________|_ka3__K3_|  kpADD  |
+#  |_ka1__K1_|___ka2___|_ka3__K3_|  kpADD  |
 #  |    4    |    5    |    6    |         |
 #  |   $Ot   |   $Ou   |   $Ov   |         |
-#  |_________|_kb2__K2_|_________|_________|
+#  |___kb1___|_kb2__K2_|___kb3___|_________|
 #  |    1    |    2    |    3    |         |
 #  |   $Oq   |   $Or   |   $Os   |         |
-#  |_kc1__K4_|_________|_kc3__K5_|  enter  |
+#  |_kc1__K4_|___kc2___|_kc3__K5_|  enter  |
 #  |         0         |    .    |   $OM   |
 #  |        $Op        |   $On   |         |
 #  |_______kpZRO_______|__kpDOT__|_kent_@8_|
@@ -6069,7 +6046,7 @@ xtermm|xterm terminal emulator (monochrome),
        tbc=\E[3g, use=ansi+apparrows, use=ansi+csr,
        use=ansi+cup, use=ansi+erase, use=ansi+idl,
        use=ansi+local, use=ansi+sgrso, use=decid+cpr,
-       use=vt100+fnkeys,
+       use=vt100+keypad,
 
 xtermc|xterm terminal emulator (color),
        ncv#7,
@@ -6134,7 +6111,7 @@ color_xterm|cx|cx100|color_xterm color terminal emulator 
for X,
        use=ecma+underline, use=ecma+standout,
        use=xterm+r5+fkeys, use=ansi+apparrows, use=ansi+csr,
        use=ansi+cup, use=ansi+idl, use=ansi+local,
-       use=decid+cpr, use=ecma+color, use=vt220+keypad,
+       use=decid+cpr, use=ecma+color, use=vt100+keypad,
 
 # The IRAF source has a terminfo using "xterm-r5", but line-drawing does not
 # work in that case.  This entry uses xterm+acs, to work around that problem.
@@ -6730,7 +6707,7 @@ mlterm3|multi lingual terminal emulator 3.x,
        use=ecma+strikeout, use=xterm+app, use=xterm+pcf2,
        use=xterm+pcc2, use=xterm+pce2, use=xterm+meta,
        use=xterm+alt+title, use=xterm+sm+1006,
-       use=vt100+pfkeys, use=bracketed+paste, use=mlterm2,
+       use=vt100+keypad, use=bracketed+paste, use=mlterm2,
        use=report+version,
 
 # This is mlterm 2.9.3's mlterm.ti, with some additions/corrections -TD
@@ -6834,7 +6811,7 @@ rxvt-basic|rxvt terminal base (X Window System),
        use=ecma+underline, use=ecma+standout, use=ansi+csr,
        use=ansi+idl, use=ansi+local, use=xterm+alt47,
        use=vt100+enq, use=vt100+4bsd, use=rxvt+pcfkeys,
-       use=vt220+cvis, use=vt220+keypad,
+       use=vt220+cvis, use=vt100+keypad,
 
 # Key Codes from rxvt reference:
 #
@@ -7264,7 +7241,7 @@ mvterm|vv100|SwitchTerm aka mvTERM,
            %;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smkx=\E[?1h\E=, smso=\E[7m, use=ansi+csr,
        use=ansi+idl, use=ansi+local, use=ansi+sgrul,
-       use=xterm+alt47, use=vt100+fnkeys, use=vt100+4bsd,
+       use=xterm+alt47, use=vt100+pf1-pf4, use=vt100+4bsd,
        use=x10term+sl,
 
 #### MTERM
@@ -7384,7 +7361,6 @@ st|stterm|aka simpleterm,
 # Reviewed 0.8.5 (Debian stable package "stterm"):
 # In tack,
 #      sends nothing for control- and alt-modifiers to function-keys
-#      does not support application-mode for numeric keypad
 # In vttest,
 #      identifies as a VT102
 #      SRM, DECTCEM and ECH work, but not DECSCA
@@ -7410,6 +7386,9 @@ st-0.8.5|simpleterm 0.8.5,
 #
 # This entry discards the ccc/initc capabilities from st-0.7 because they
 # belong in st-256color.
+#
+# Keyboard shortcut for full application keypad mode has changed to
+# Left Ctrl+Shift+Num Lock. -JH
 st-0.8|simpleterm 0.8,
        kcbt@, kent@, oc=\E]104\007, Ms=\E]52;%p1%s;%p2%s\007,
        kDN3=\E[1;3B, kDN5=\E[1;5B, kLFT3=\E[1;3D, kLFT5=\E[1;5D,
@@ -7462,7 +7441,9 @@ st-0.7|simpleterm 0.7,
 #      http://git.suckless.org/st/log/st.info
 # Tmux unofficial extensions, see TERMINFO EXTENSIONS in tmux(1)
 # still has no function keys past kf36 (no combinations of modifiers)
-# no application keypad mode, e.g, kent.
+#
+# In application keypad mode, sends limited set of sequences (keypad arrows)
+# by default, but can be switched to full mode using Left Alt+Num Lock. -JH
 st-0.6|simpleterm 0.6,
        bce, mir, npc, xenl, XT,
        colors#8, pairs#64,
@@ -7493,7 +7474,7 @@ st-0.6|simpleterm 0.6,
        use=ecma+standout, use=ansi+apparrows, use=ansi+csr,
        use=ansi+enq, use=ansi+idl, use=ansi+inittabs,
        use=ansi+local, use=ansi+rca2, use=ansi+sgrbold,
-       use=vt100+4bsd, use=vt100+pfkeys, use=vt220+pcedit,
+       use=vt100+4bsd, use=vt100+keypad, use=vt220+pcedit,
        use=ecma+index, use=xterm+alt1049, use=vt220+cvis,
        use=xterm+sl, use=ecma+italics, use=ecma+strikeout,
        use=bracketed+paste, use=xterm+pcf2,
@@ -8866,7 +8847,7 @@ screen.rxvt|screen in rxvt,
        bw, XT,
        cvvis@, flash@, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
        kcuu1=\EOA, use=screen+fkeys, use=vt100+enq,
-       use=rxvt+pcfkeys, use=xterm+x11mouse, use=vt220+keypad,
+       use=rxvt+pcfkeys, use=xterm+x11mouse, use=vt100+keypad,
        use=screen,
 screen.Eterm|screen in Eterm,
        use=xterm+x11mouse, use=screen+fkeys, use=Eterm,
@@ -13324,7 +13305,7 @@ wy75|wyse75|Wyse 75,
        smkx=\E[?1l\E[?7h\E=, smso=\E[1t\E[7m, smul=\E[2t\E[4m,
        tsl=\E[>\,\001, use=ansi+arrows, use=ansi+cup,
        use=ansi+local, use=ansi+pp, use=ansi+tabs,
-       use=decid+cpr, use=vt220+cvis, use=vt220+keypad,
+       use=decid+cpr, use=vt220+cvis, use=vt100+keypad,
        use=vt220+sfkeys, use=vt220+ufkeys,
 #
 #      This terminal description uses the non-hidden attribute mode
@@ -13385,7 +13366,7 @@ wy85|wyse85|Wyse 85,
        use=ansi+csr, use=ansi+inittabs, use=ansi+local,
        use=ansi+pp, use=ansi+sgrbold, use=decid+cpr,
        use=vt100+4bsd, use=vt220+vtedit, use=vt220+cvis,
-       use=vt220+keypad, use=vt220+sfkeys, use=vt220+ufkeys,
+       use=vt100+keypad, use=vt220+sfkeys, use=vt220+ufkeys,
 #
 #      Wyse 85 with visual bell.
 wy85-vb|wyse85-vb|Wyse 85 with visible bell,
@@ -13439,7 +13420,7 @@ wy85-8bit|wyse85-8bit|Wyse 85 in 8-bit mode,
        tsl=\E[40h\E7\E[25;%i%p1%dH, use=ansi+csr,
        use=ansi+inittabs, use=ansi+local, use=ansi+pp,
        use=ansi+sgrbold, use=decid+cpr, use=vt100+4bsd,
-       use=vt100+pfkeys, use=vt220+cvis,
+       use=vt100+keypad, use=vt220+cvis,
 #
 #      Wyse 185 emulating a VT320 7 bit mode.
 #
@@ -13476,7 +13457,7 @@ wy185|wyse185|Wyse 185,
        use=ecma+underline, use=ecma+standout, use=ansi+arrows,
        use=ansi+inittabs, use=ansi+local, use=ansi+pp,
        use=ansi+sgrbold, use=decid+cpr, use=vt100+4bsd,
-       use=vt220+vtedit, use=vt220+keypad, use=vt220+sfkeys,
+       use=vt220+vtedit, use=vt100+keypad, use=vt220+sfkeys,
        use=vt220+ufkeys, use=wyse+cvis,
 #
 #      Wyse 185 with 24 data lines and top status (terminal status)
@@ -13675,7 +13656,7 @@ wy370|wyse370|wy370-101k|Wyse 370 with 101 key keyboard,
 wy370-105k|Wyse 370 with 105 key keyboard,
        kfnd=\E[1~, khlp=\E[28~, khome=\E[26~, lf1=PF1, lf2=PF2,
        lf3=PF3, lf4=PF4, use=ansi+arrows, use=vt220+vtedit,
-       use=wy370-nk, use=vt220+keypad, use=vt220+sfkeys,
+       use=wy370-nk, use=vt100+keypad, use=vt220+sfkeys,
        use=vt220+ufkeys,
 #
 #      Function key set for the PC compatible keyboard
@@ -13801,7 +13782,7 @@ wy520|wyse520|Wyse 520,
        use=ecma+underline, use=ansi+arrows, use=ansi+csr,
        use=ansi+cup, use=ansi+local, use=ansi+pp,
        use=ansi+sgrbold, use=ansi+tabs, use=decid+cpr,
-       use=vt220+vtedit, use=vt220+keypad, use=vt220+sfkeys,
+       use=vt220+vtedit, use=vt100+keypad, use=vt220+sfkeys,
        use=vt220+ufkeys, use=wyse+cvis,
 #
 #       Wyse 520 with 24 data lines and status (terminal status)
@@ -14342,7 +14323,7 @@ v5410|att5410 in terms of a VT100,
        sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
        smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
        use=ansi+csr, use=ansi+idl1, use=decid+cpr,
-       use=vt100+fnkeys,
+       use=vt100+keypad,
 
 #
 # Teletype Model 5420 -- A souped up 5410, with multiple windows,
@@ -17791,7 +17772,7 @@ ts100|ts100-sp|Falco ts100-sp,
        rmkx=\E[?1l\E>,
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smam=\E[?7h,
        smkx=\E[?1h\E=, use=ansi+csr, use=ansi+local,
-       use=decid+cpr, use=vt100+4bsd, use=vt100+fnkeys,
+       use=decid+cpr, use=vt100+4bsd, use=vt100+keypad,
 
 ts100-ctxt|Falco ts-100 saving context,
        rmcup=\E~_b, smcup=\E~_d\E[2J, use=ts100,
@@ -19636,7 +19617,7 @@ ncr260vt100an|NCR 2900/260 VT100 with ANSI keyboard,
        smkx=\E[?1h\E=, smso=\E[1;7m, tbc=\E[3g,
        vpa=\E[%p1%dd$<40>, use=ansi+csr, use=ansi+sgrbold,
        use=decid+cpr, use=vt220+vtedit, use=vt220+cvis,
-       use=vt220+keypad, use=ncr260vt+sl,
+       use=vt100+keypad, use=ncr260vt+sl,
 
 ncr260vt+sl|NCR 2900/260 VT100 status line,
        hs,
@@ -19697,7 +19678,7 @@ ncr260vt200an|NCR 2900/260 VT200 with ANSI keyboard,
        smir=\E[4h, smkx=\E[?1h\E=, tbc=\E[3g,
        vpa=\E[%p1%dd$<40>, use=ecma+underline,
        use=ecma+standout, use=ansi+sgrbold, use=decid+cpr,
-       use=vt220+vtedit, use=vt220+cvis, use=vt220+keypad,
+       use=vt220+vtedit, use=vt220+cvis, use=vt100+keypad,
        use=ncr260vt+sl, use=vt220+sfkeys, use=vt220+ufkeys,
 
 ncr260vt200wan|NCR 2900/260 VT200 wide mode ANSI keyboard,
@@ -19752,7 +19733,7 @@ ncr260vt300an|NCR 2900/260 VT300 with ANSI keyboard,
        smir=\E[4h, smkx=\E[?1h\E=, tbc=\E[3g,
        vpa=\E[%p1%dd$<40>, use=ecma+underline,
        use=ecma+standout, use=ansi+sgrbold, use=decid+cpr,
-       use=vt220+vtedit, use=vt220+cvis, use=vt220+keypad,
+       use=vt220+vtedit, use=vt220+cvis, use=vt100+keypad,
        use=ncr260vt+sl, use=vt220+sfkeys, use=vt220+ufkeys,
 
 ncr260vt300wan|NCR 2900/260 VT300 wide mode ANSI keyboard,
@@ -20531,7 +20512,7 @@ tek4105-30|Tektronix 4015 emulating 30 line VT100,
        kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rmam=\E[?7l,
        rmkx=\E[?1l\E>, rmso=\E[m$<2>, smam=\E[?7h,
        smkx=\E[?1h\E=, use=ansi+csr, use=ansi+local,
-       use=vt100+4bsd, use=vt100+fnkeys,
+       use=vt100+4bsd, use=vt100+keypad,
 
 # Tektronix 4105 from BRL
 # The following setup modes are assumed for normal operation:
@@ -24446,7 +24427,7 @@ xtalk|IBM PC with xtalk communication program (versions 
up to 3.4),
        rmkx=\E[?1l\E>, rmso=\E[m\s,
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
        smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m\s,
-       tbc=\E[3g, use=ansi+local, use=vt100+fnkeys,
+       tbc=\E[3g, use=ansi+local, use=vt100+pf1-pf4,
 
 # The official PC terminal emulator program of the AT&T Product Centers.
 # Note - insert mode commented out - doesn't seem to work on AT&T PC.
@@ -27998,4 +27979,20 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 # 2025-07-19
 #      + add xterm+keypad to pccon+base -TD
 #
+# 2025-10-18
+#      + 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
+#      (all by Jakub Horky)
+#
 ######## SHANTIH!  SHANTIH!  SHANTIH!
-- 
2.43.0


Reply via email to