Add strikethrough capabilities to terminfo

The termcap aliases are not standard, but they are used by Vim, it
seems. As far as I can tell, there are no standard termcap attribute for
strikethrough.
This commit is contained in:
Vlad Hanciuta 2020-04-18 16:37:09 +01:00
parent e271719dd2
commit a61d70ea9a
No known key found for this signature in database
GPG Key ID: C5BB3682CF39F361
2 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,8 @@ string_capabilities = {
'rmso': r'\E[27m',
# Exit underline mode
'rmul': r'\E[24m',
# Exit strikethrough mode
'rmxx': r'\E[29m',
# Reset string1 (empty OSC sequence to exit OSC/OTH modes, and regular reset)
'rs1': r'\E]\E\\\Ec',
# Save cursor
@ -224,6 +226,8 @@ string_capabilities = {
'smso': r'\E[7m',
# Enter underline mode
'smul': r'\E[4m',
# Enter strikethrough mode
'smxx': r'\E[9m',
# Clear all tab stops
'tbc': r'\E[3g',
# To status line (used to set window titles)
@ -351,6 +355,7 @@ termcap_aliases.update({
'ei': 'rmir',
'se': 'rmso',
'ue': 'rmul',
'Te': 'rmxx',
'r1': 'rs1',
'sc': 'sc',
'AB': 'setab',
@ -363,6 +368,7 @@ termcap_aliases.update({
'im': 'smir',
'so': 'smso',
'us': 'smul',
'Ts': 'smxx',
'ct': 'tbc',
'cv': 'vpa',
'ZH': 'sitm',

Binary file not shown.