mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 23:44:59 +02:00
Add entries for bracketed paste to kitty's terminfo
These were added to ncurses 6.4 in early 2023.
This commit is contained in:
@@ -288,6 +288,12 @@ string_capabilities = {
|
|||||||
'u8': r'\E[?%[;0123456789]c',
|
'u8': r'\E[?%[;0123456789]c',
|
||||||
'u9': r'\E[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
|
# The following are entries that we don't use
|
||||||
# # turn on blank mode, (characters invisible)
|
# # turn on blank mode, (characters invisible)
|
||||||
# 'invis': r'\E[8m',
|
# 'invis': r'\E[8m',
|
||||||
@@ -460,7 +466,7 @@ queryable_capabilities = cast(Dict[str, str], numeric_capabilities.copy())
|
|||||||
queryable_capabilities.update(string_capabilities)
|
queryable_capabilities.update(string_capabilities)
|
||||||
extra = (bool_capabilities | numeric_capabilities.keys() | string_capabilities.keys()) - set(termcap_aliases.values())
|
extra = (bool_capabilities | numeric_capabilities.keys() | string_capabilities.keys()) - set(termcap_aliases.values())
|
||||||
no_termcap_for = frozenset(
|
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}'
|
f'k{key}{mod}'
|
||||||
for key in 'UP DN RIT LFT BEG END HOM IC DC PRV NXT'.split()
|
for key in 'UP DN RIT LFT BEG END HOM IC DC PRV NXT'.split()
|
||||||
for mod in range(3, 8)])
|
for mod in range(3, 8)])
|
||||||
|
|||||||
@@ -16,8 +16,12 @@ xterm-kitty|KovIdTTY,
|
|||||||
it#8,
|
it#8,
|
||||||
lines#24,
|
lines#24,
|
||||||
pairs#32767,
|
pairs#32767,
|
||||||
|
BD=\E[?2004l,
|
||||||
|
BE=\E[?2004h,
|
||||||
Cr=\E]112\007,
|
Cr=\E]112\007,
|
||||||
Cs=\E]12;%p1%s\007,
|
Cs=\E]12;%p1%s\007,
|
||||||
|
PE=\E201~,
|
||||||
|
PS=\E200~,
|
||||||
Se=\E[2\sq,
|
Se=\E[2\sq,
|
||||||
Setulc=\E[58:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d%;m,
|
Setulc=\E[58:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d%;m,
|
||||||
Smulx=\E[4:%p1%dm,
|
Smulx=\E[4:%p1%dm,
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user