From 6bbe995d641c67d6072046711ec0990e0bc10b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Wr=C3=B3blewski?= Date: Mon, 28 Dec 2020 13:06:15 -0800 Subject: [PATCH] Generate u[6789] with terminfo.py Should not hurt anything, it's just documenting kitty's existing VT220 compatibility. --- kitty/terminfo.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/kitty/terminfo.py b/kitty/terminfo.py index 6d35fe1c2..398e07fe3 100644 --- a/kitty/terminfo.py +++ b/kitty/terminfo.py @@ -262,6 +262,15 @@ string_capabilities = { # Set RGB background color (non-standard used by neovim) 'setrgbb': r'\E[48:2:%p1%d:%p2%d:%p3%dm', + # The following entries are for compatibility with xterm, + # and shell scripts using e.g. `tput u7` to emit a CPR escape + # See https://invisible-island.net/ncurses/terminfo.src.html + # and INTERPRETATION OF USER CAPABILITIES + 'u6': r'\E[%i%d;%dR', + 'u7': r'\E[6n', + 'u8': r'\E[?%[;0123456789]c', + 'u9': r'\E[c', + # The following are entries that we don't use # # turn on blank mode, (characters invisible) # 'invis': r'\E[8m', @@ -401,6 +410,10 @@ termcap_aliases.update({ 'fs': 'fsl', 'ds': 'dsl', + 'u6': 'u6', + 'u7': 'u7', + 'u8': 'u8', + 'u9': 'u9', # 'ut': 'bce', # 'ds': 'dsl',