Add Smulx to terminfo
A couple of other terminals use it for styled underlines, in contravention of the spec. But, in the interests of wider interoperability add it to kitty as well. Fixes #3725
This commit is contained in:
parent
057084a708
commit
63a36a1054
@ -231,6 +231,7 @@ string_capabilities = {
|
|||||||
'smso': r'\E[7m',
|
'smso': r'\E[7m',
|
||||||
# Enter underline mode
|
# Enter underline mode
|
||||||
'smul': r'\E[4m',
|
'smul': r'\E[4m',
|
||||||
|
'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',
|
||||||
# Clear all tab stops
|
# Clear all tab stops
|
||||||
@ -436,7 +437,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 Tc setrgbf setrgbb fullkbd kUP kDN'.split() + [
|
'Su Smulx 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)])
|
||||||
|
|||||||
@ -16,6 +16,7 @@ xterm-kitty|KovIdTTY,
|
|||||||
it#8,
|
it#8,
|
||||||
lines#24,
|
lines#24,
|
||||||
pairs#32767,
|
pairs#32767,
|
||||||
|
Smulx=\E[4:%p1%dm,
|
||||||
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
||||||
bel=^G,
|
bel=^G,
|
||||||
bold=\E[1m,
|
bold=\E[1m,
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user