overrides key encoding with data from the local terminfo dataset:
key | terminfo name | |
---|---|---|
without modifiers | modifiers == shift | |
help | khlp | kHLP |
find | kfnd | kFND |
select | kslt | kSLT |
home | khome | kHOM |
end | kend | kEND |
left | kcub1 | kLFT |
right | kcuf1 | kRIT |
up | kcuu1 | kri or kUP or kDN |
down | kcud1 | kind |
Fx with x from 1 to 35 | kfx | n/a |
keypad home | ka1 | n/a |
keypad end | kc1 | n/a |
keypad page up | ka3 | n/a |
keypad page down | kc3 | n/a |
left tab (aka shift-tab) | kcbt | n/a |
clear | kclr | n/a |
delete | kdch1 | n/a |
insert | kich1 | n/a |
page down | knp | kNXT |
page up | kpp | kPRV |
undo | kund | n/a |
backspace | kbs | n/a |
Further if the first table does not match, override with the following from the local terminfo dataset:
key | terminfo name | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
down | kDNx | with x from the following table
| ||||||||||||||||
left | kLFTx | |||||||||||||||||
right | kRITx | |||||||||||||||||
up | kUPx | |||||||||||||||||
delete | kDCx | |||||||||||||||||
end | kENDx | |||||||||||||||||
home | kHOMx | |||||||||||||||||
insert | kICx | |||||||||||||||||
page down | kNXTx | |||||||||||||||||
page up | kPRVx |
The sequences send to the application are the same as those returned by query keyboard mapping or miscellaneous information with the terminfo name.
See also set terminal description for 'tcap' keyboard mapping.