diff --git a/kitty/terminfo.py b/kitty/terminfo.py index 8fc5eb4ec..d9310f497 100644 --- a/kitty/terminfo.py +++ b/kitty/terminfo.py @@ -234,6 +234,7 @@ def encode_keystring(keybytes: bytes) -> str: 'Smulx': r'\E[4:%p1%dm', # this is a non-standard extension that some terminals use, so match them # Enter strikethrough mode 'smxx': r'\E[9m', + 'Sync': '\\EP=%p1%ds\\E\\', # this is a non-standard extension supported by tmux for synchronized updates # Clear all tab stops 'tbc': r'\E[3g', # To status line (used to set window titles) @@ -437,7 +438,7 @@ def encode_keystring(keybytes: bytes) -> str: queryable_capabilities.update(string_capabilities) extra = (bool_capabilities | numeric_capabilities.keys() | string_capabilities.keys()) - set(termcap_aliases.values()) no_termcap_for = frozenset( - 'Su Smulx Tc setrgbf setrgbb fullkbd kUP kDN'.split() + [ + 'Su Smulx Sync Tc setrgbf setrgbb fullkbd kUP kDN'.split() + [ 'k{}{}'.format(key, mod) for key in 'UP DN RIT LFT END HOM IC DC PRV NXT'.split() for mod in range(3, 8)]) diff --git a/terminfo/kitty.terminfo b/terminfo/kitty.terminfo index f74dc4e89..2179ff469 100644 --- a/terminfo/kitty.terminfo +++ b/terminfo/kitty.terminfo @@ -17,6 +17,7 @@ xterm-kitty|KovIdTTY, lines#24, pairs#32767, Smulx=\E[4:%p1%dm, + Sync=\EP=%p1%ds\E\, acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, bel=^G, bold=\E[1m, diff --git a/terminfo/x/xterm-kitty b/terminfo/x/xterm-kitty index 7b1a2abb5..4471e81c3 100644 Binary files a/terminfo/x/xterm-kitty and b/terminfo/x/xterm-kitty differ