From 83787fbc4094a9918b7ede2364e3b3ad1ab4d782 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 30 Nov 2016 22:27:41 +0530 Subject: [PATCH] Add the missing op terminfo code --- kitty/terminfo.py | 36 ++++++++++++++++++++++++++++++++++++ terminfo/kitty.terminfo | 1 + terminfo/x/xterm-kitty | Bin 1735 -> 1744 bytes 3 files changed, 37 insertions(+) diff --git a/kitty/terminfo.py b/kitty/terminfo.py index 18bb80ad6..a9433c463 100644 --- a/kitty/terminfo.py +++ b/kitty/terminfo.py @@ -28,6 +28,12 @@ 'npc', # eat_newline_glitch (newline ignored after 80 columns) 'xenl', + + # The following are entries from termite's terminfo that we dont need + # # background color erase + # 'bce', + # # has extra status line + # 'hs', } termcap_aliases.update({ @@ -204,6 +210,8 @@ 'sgr': r'%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m', # Clear all attributes 'sgr0': r'\E(B\E[m', + # Reset color pair to its original value + 'op': r'\E[39;49m', # Turn on automatic margins 'smam': r'\E[?7h', # Start alternate screen @@ -237,6 +245,22 @@ 'ka3': r'', 'kc1': r'', 'kc3': r'', + + # The following are entries from termite's terminfo that we dont need + # # display status line + # 'dsl': r'\E]2;\007', + # # return from status line + # 'fsl': r'^G', + # # turn on blank mode, (characters invisible) + # 'invis': r'\E[8m', + # # init2 string + # 'is2': r'\E[!p\E[?3;4l\E[4l\E>', + # # Enter/send key + # 'kent': r'\EOM', + # # scroll forwards + # 'kind': r'\E[1;2B', + # # reset2 + # 'rs2': r'\E[!p\E[?3;4l\E[4l\E>', } termcap_aliases.update({ @@ -322,6 +346,7 @@ 'AF': 'setaf', 'sa': 'sgr', 'me': 'sgr0', + 'op': 'op', 'SA': 'smam', 'ti': 'smcup', 'im': 'smir', @@ -343,6 +368,17 @@ 'K3': 'ka3', 'K4': 'kc1', 'K5': 'kc3', + + + # 'ut': 'bce', + # 'hs': 'hs', + # 'ds': 'dsl', + # 'fs': 'fsl', + # 'mk': 'invis', + # 'is': 'is2', + # '@8': 'kent', + # 'kF': 'kind', + # 'r2': 'rs2', }) queryable_capabilities = numeric_capabilities.copy() diff --git a/terminfo/kitty.terminfo b/terminfo/kitty.terminfo index 3752d874e..23efde125 100644 --- a/terminfo/kitty.terminfo +++ b/terminfo/kitty.terminfo @@ -88,6 +88,7 @@ xterm-kitty|KovIdTTY, kri=\E[1;2A, kund=, oc=\E]104\007, + op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, diff --git a/terminfo/x/xterm-kitty b/terminfo/x/xterm-kitty index 8dcc29d13e987b4648e3dc004c61474ee073d325..01fe562409a4eb7347215101db4bba032d232195 100644 GIT binary patch delta 87 zcmX@kdx4i*icyq7hJl|UlX1~T?!`=O%b3dz_bBicyq7hJl|UlX2!o?!`=O|Nk#zTFW$9kWoyGoB2Nm5MZ7x$mGN=29=Ux Pj@+!vyn<=+J=RYEK078T