From e271719dd2db6166216987b796cbdafb9bd7df1d Mon Sep 17 00:00:00 2001 From: Vlad Hanciuta Date: Sat, 18 Apr 2020 16:05:30 +0100 Subject: [PATCH 1/2] Add strikeout capability to terminfo --- terminfo/kitty.terminfo | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminfo/kitty.terminfo b/terminfo/kitty.terminfo index 14c5907c1..b80645367 100644 --- a/terminfo/kitty.terminfo +++ b/terminfo/kitty.terminfo @@ -215,6 +215,7 @@ xterm-kitty|KovIdTTY, rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m, + rmxx=\E[29m, rs1=\E]\E\\\Ec, sc=\E7, setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m, @@ -231,6 +232,7 @@ xterm-kitty|KovIdTTY, smkx=\E[?1h, smso=\E[7m, smul=\E[4m, + smxx=\E[9m, tbc=\E[3g, tsl=\E]2;, vpa=\E[%i%p1%dd, From a61d70ea9af244b37d431eec348e626aafa6cf06 Mon Sep 17 00:00:00 2001 From: Vlad Hanciuta Date: Sat, 18 Apr 2020 16:37:09 +0100 Subject: [PATCH 2/2] 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 @@ def encode_keystring(keybytes: bytes) -> str: '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 @@ def encode_keystring(keybytes: bytes) -> str: '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 @@ def encode_keystring(keybytes: bytes) -> str: 'ei': 'rmir', 'se': 'rmso', 'ue': 'rmul', + 'Te': 'rmxx', 'r1': 'rs1', 'sc': 'sc', 'AB': 'setab', @@ -363,6 +368,7 @@ def encode_keystring(keybytes: bytes) -> str: '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_