From 2be49e7f66b197bb8279e66ffa0b4b80f79d652e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 10 Dec 2016 08:40:03 +0530 Subject: [PATCH] Add the status line capabilities to terminfo --- kitty/terminfo.py | 15 ++++++++++++--- terminfo/kitty.terminfo | 4 ++++ terminfo/x/xterm-kitty | Bin 1744 -> 1757 bytes 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/kitty/terminfo.py b/kitty/terminfo.py index a9433c463..3cad53e83 100644 --- a/kitty/terminfo.py +++ b/kitty/terminfo.py @@ -28,12 +28,12 @@ bool_capabilities = { 'npc', # eat_newline_glitch (newline ignored after 80 columns) 'xenl', + # has extra status line (window title) + 'hs', # The following are entries from termite's terminfo that we dont need # # background color erase # 'bce', - # # has extra status line - # 'hs', } termcap_aliases.update({ @@ -45,6 +45,7 @@ termcap_aliases.update({ 'ms': 'msgr', 'NP': 'npc', 'xn': 'xenl', + 'hs': 'hs', }) numeric_capabilities = { @@ -224,6 +225,12 @@ string_capabilities = { 'smul': r'\E[4m', # Clear all tab stops 'tbc': r'\E[3g', + # To status line (used to set window titles) + 'tsl': r'\E]2;', + # From status line (end window title string) + 'fsl': r'^G', + # Disable status line (clear window title) + 'dsl': r'\E]2;\007', # Move to specified line 'vpa': r'\E[%i%p1%dd', # Enter italics mode @@ -368,10 +375,12 @@ termcap_aliases.update({ 'K3': 'ka3', 'K4': 'kc1', 'K5': 'kc3', + 'ts': 'tsl', + 'fs': 'fsl', + 'ds': 'dsl', # 'ut': 'bce', - # 'hs': 'hs', # 'ds': 'dsl', # 'fs': 'fsl', # 'mk': 'invis', diff --git a/terminfo/kitty.terminfo b/terminfo/kitty.terminfo index 23efde125..401d3c03e 100644 --- a/terminfo/kitty.terminfo +++ b/terminfo/kitty.terminfo @@ -1,6 +1,7 @@ xterm-kitty|KovIdTTY, am, ccc, + hs, km, mc5i, mir, @@ -36,11 +37,13 @@ xterm-kitty|KovIdTTY, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, + dsl=\E]2;\007, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l, + fsl=^G, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, @@ -114,4 +117,5 @@ xterm-kitty|KovIdTTY, smso=\E[7m, smul=\E[4m, tbc=\E[3g, + tsl=\E]2;, vpa=\E[%i%p1%dd, diff --git a/terminfo/x/xterm-kitty b/terminfo/x/xterm-kitty index 01fe562409a4eb7347215101db4bba032d232195..4ca761612812587184f030fc226bf60610ef984e 100644 GIT binary patch delta 435 zcmcb>dzY76icyq7hJl|UlX3k-Zh1z=iQ4h?4GjPPw*he%LqCw5!7vv{{{O#-VL8JZ zhK&rn81^w71&W+wxXf^q;XaV{5iAc<^Z);6Ap1L%{}V|6gUc~7vN7^73NVT=N-)YX zsxWFX8ZeqMS~33rZx6)Ij2?`>Ksu1|KlA?x#>s+AN(nKHsf>Ay<%|uCos5$hXEQEg zTnkiz47Ne}I~n&d9%nqoc!u#jqaxG)|0+ysKoSJBnRI|GT_!y+Umr*ofLSF>RZNow z8O697z})};TYy|91*cXh7or_U>XOv|6|6c}(AwZ5v9>`W;QUr@A0m)=AE1fBqX|f=r7*{cv z`~QDAkjtdtQ~~9}^#A`~2^VPqvfAN1n2J6mk*Q3xLB^yq|6d5A&DfSPt!LT>wn$8b n8Kwh4OELphIdRKFrIeYIChIacP2S3!wONtHm~nF?YYQU)-6iXy