Add entries for bracketed paste to kitty's terminfo
These were added to ncurses 6.4 in early 2023.
This commit is contained in:
parent
dfcd5381d9
commit
b7fd46d971
3 changed files with 11 additions and 1 deletions
|
|
@ -288,6 +288,12 @@ def encode_keystring(keybytes: bytes) -> str:
|
|||
'u8': r'\E[?%[;0123456789]c',
|
||||
'u9': r'\E[c',
|
||||
|
||||
# Bracketed paste, added to ncurses 6.4 in 2023
|
||||
'PS': '\E200~',
|
||||
'PE': '\E201~',
|
||||
'BE': '\E[?2004h',
|
||||
'BD': '\E[?2004l',
|
||||
|
||||
# The following are entries that we don't use
|
||||
# # turn on blank mode, (characters invisible)
|
||||
# 'invis': r'\E[8m',
|
||||
|
|
@ -460,7 +466,7 @@ def encode_keystring(keybytes: bytes) -> str:
|
|||
queryable_capabilities.update(string_capabilities)
|
||||
extra = (bool_capabilities | numeric_capabilities.keys() | string_capabilities.keys()) - set(termcap_aliases.values())
|
||||
no_termcap_for = frozenset(
|
||||
'Cr Cs Se Ss Setulc Su Smulx Sync Tc setrgbf setrgbb fullkbd kUP kDN kbeg kBEG'.split() + [
|
||||
'Cr Cs Se Ss Setulc Su Smulx Sync Tc PS PE BE BD setrgbf setrgbb fullkbd kUP kDN kbeg kBEG'.split() + [
|
||||
f'k{key}{mod}'
|
||||
for key in 'UP DN RIT LFT BEG END HOM IC DC PRV NXT'.split()
|
||||
for mod in range(3, 8)])
|
||||
|
|
|
|||
|
|
@ -16,8 +16,12 @@ xterm-kitty|KovIdTTY,
|
|||
it#8,
|
||||
lines#24,
|
||||
pairs#32767,
|
||||
BD=\E[?2004l,
|
||||
BE=\E[?2004h,
|
||||
Cr=\E]112\007,
|
||||
Cs=\E]12;%p1%s\007,
|
||||
PE=\E201~,
|
||||
PS=\E200~,
|
||||
Se=\E[2\sq,
|
||||
Setulc=\E[58:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d%;m,
|
||||
Smulx=\E[4:%p1%dm,
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue