From a61d70ea9af244b37d431eec348e626aafa6cf06 Mon Sep 17 00:00:00 2001 From: Vlad Hanciuta Date: Sat, 18 Apr 2020 16:37:09 +0100 Subject: [PATCH] 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. --- kitty/terminfo.py | 6 ++++++ terminfo/x/xterm-kitty | Bin 3168 -> 3197 bytes 2 files changed, 6 insertions(+) diff --git a/kitty/terminfo.py b/kitty/terminfo.py index d8a7222de..85bbd0241 100644 --- a/kitty/terminfo.py +++ b/kitty/terminfo.py @@ -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', diff --git a/terminfo/x/xterm-kitty b/terminfo/x/xterm-kitty index e2f792790e998c1ddad1bd7db20a3c6b098c0b97..e3d798eed9063ba46fe6d1346a4434fb1408349b 100644 GIT binary patch delta 82 zcmaDL@mFHQEDlx+hGK@#ljn2fvlcP-FfNmXd fXv@tC+y;zNMY$Cf48^G>Md?XNP&$pF7$gV)HcT19 delta 56 zcmew>@jzn3EDlyPhJ1#5ljn2fGqz0@<}741+uX^S&p7!Xm(gZZZaqeU;?$C&^rR#P I2%W|N05JFx`2YX_