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

diff --git a/misc/terminfo.src b/misc/terminfo.src
index 1a4ce98f..269a0827 100644
--- a/misc/terminfo.src
+++ b/misc/terminfo.src
@@ -4246,6 +4246,13 @@ putty-vt100|VT100+ keyboard layout,
 putty-sco|putty with SCO function keys,
        use=putty+fnkeys+sco, use=putty,
 
+# This is the richest variant in terms of keyboard combinations. Need to set
+# both the "Xterm 216+" and "xterm-style bitmap" options. Shifted keys don't
+# work in cursor app mode, so don't activate it.
+putty-xterm|putty with Xterm 216+ and xterm-style bitmap function keys,
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[4~, khome=\E[1~,
+       rmkx=\E>, smkx=\E=,
+       use=xterm+noapp, use=putty+fnkeys+xterm-new, use=putty,
 # PuTTY has more than one section in its Keyboard configuration:
 # a) backspace/delete, which we ignore since that choice largely depends on
 #    whether one matches Unix and BSD or Linux.
@@ -4300,6 +4307,12 @@ putty+fnkeys+sco|SCO fn-keys for PuTTY,
        kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, kich1=\E[L,
        knp=\E[G, kpp=\E[I, use=vt100+noapp,
 
+putty+fnkeys+xterm-new|Xterm 216+ fn-keys for PuTTY with xterm+style bitmap,
+       kend=\E[4~, khome=\E[1~, kEND=\E[4;2~, kEND3=\E[4;3~, kEND4=\E[4;4~,
+       kEND5=\E[4;5~, kEND6=\E[4;6~, kEND7=\E[4;7~, kHOM=\E[1;2~,
+       kHOM3=\E[1;3~, kHOM4=\E[4;1~, kHOM5=\E[1;5~, kHOM6=\E[1;6~,
+       kHOM7=\E[1;7~, use=xterm+pcfkeys,
+
 #### mintty
 # https://github.com/mintty/mintty
 #
@@ -28050,6 +28063,7 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #      + 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
 #      (all by Jakub Horky)
 #
 ######## SHANTIH!  SHANTIH!  SHANTIH!
-- 
2.43.0


Reply via email to