Add the Sync non-standard capability for synchronized updates to terminfo

Since the geniuses at terminal-wg are trying their best to create chaos
by retroactively changing the escape code used for this feature, it is
good to have a property for it in terminfo. Since tmux already uses Sync
for it, follow that in kitty's terminfo.
This commit is contained in:
Kovid Goyal 2021-07-01 08:48:59 +05:30
parent 64810e0e0b
commit b2a219f9d8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 3 additions and 1 deletions

View File

@ -234,6 +234,7 @@ string_capabilities = {
'Smulx': r'\E[4:%p1%dm', # this is a non-standard extension that some terminals use, so match them 'Smulx': r'\E[4:%p1%dm', # this is a non-standard extension that some terminals use, so match them
# Enter strikethrough mode # Enter strikethrough mode
'smxx': r'\E[9m', '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 # Clear all tab stops
'tbc': r'\E[3g', 'tbc': r'\E[3g',
# To status line (used to set window titles) # To status line (used to set window titles)
@ -437,7 +438,7 @@ queryable_capabilities = cast(Dict[str, str], numeric_capabilities.copy())
queryable_capabilities.update(string_capabilities) queryable_capabilities.update(string_capabilities)
extra = (bool_capabilities | numeric_capabilities.keys() | string_capabilities.keys()) - set(termcap_aliases.values()) extra = (bool_capabilities | numeric_capabilities.keys() | string_capabilities.keys()) - set(termcap_aliases.values())
no_termcap_for = frozenset( 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) 'k{}{}'.format(key, mod)
for key in 'UP DN RIT LFT END HOM IC DC PRV NXT'.split() for key in 'UP DN RIT LFT END HOM IC DC PRV NXT'.split()
for mod in range(3, 8)]) for mod in range(3, 8)])

View File

@ -17,6 +17,7 @@ xterm-kitty|KovIdTTY,
lines#24, lines#24,
pairs#32767, pairs#32767,
Smulx=\E[4:%p1%dm, Smulx=\E[4:%p1%dm,
Sync=\EP=%p1%ds\E\,
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G, bel=^G,
bold=\E[1m, bold=\E[1m,

Binary file not shown.