mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Add xterm terminfo entries for focus in/out events
Again not in man terminfo.
This commit is contained in:
parent
ce65f11ef5
commit
2fec9b372b
3 changed files with 6 additions and 1 deletions
|
|
@ -300,6 +300,9 @@ string_capabilities = {
|
|||
'Ms': r'\E]52;%p1%s;%p2%s\E\\',
|
||||
# Send device attributes (report version)
|
||||
'RV': r'\E[>c',
|
||||
# Focus In and Out events
|
||||
'kxIN': r'\E[I',
|
||||
'kxOUT': r'\E[O',
|
||||
|
||||
# The following are entries that we don't use
|
||||
# # turn on blank mode, (characters invisible)
|
||||
|
|
@ -473,7 +476,7 @@ queryable_capabilities = cast(Dict[str, str], numeric_capabilities.copy())
|
|||
queryable_capabilities.update(string_capabilities)
|
||||
extra = (bool_capabilities | numeric_capabilities.keys() | string_capabilities.keys()) - set(termcap_aliases.values())
|
||||
no_termcap_for = frozenset(
|
||||
'XR Ms RV Cr Cs Se Ss Setulc Su Smulx Sync Tc PS PE BE BD setrgbf setrgbb fullkbd kUP kDN kbeg kBEG'.split() + [
|
||||
'XR Ms RV kxIN kxOUT 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)])
|
||||
|
|
|
|||
2
terminfo/kitty.terminfo
generated
2
terminfo/kitty.terminfo
generated
|
|
@ -222,6 +222,8 @@ xterm-kitty|KovIdTTY,
|
|||
kpp=\E[5~,
|
||||
kri=\E[1;2A,
|
||||
kund=,
|
||||
kxIN=\E[I,
|
||||
kxOUT=\E[O,
|
||||
oc=\E]104\007,
|
||||
op=\E[39;49m,
|
||||
rc=\E8,
|
||||
|
|
|
|||
BIN
terminfo/x/xterm-kitty
generated
BIN
terminfo/x/xterm-kitty
generated
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue