Terminal Guide

Use "tcap" Keyboard Mapping

?1050
xterm

overrides key encoding with data from the local terminfo dataset:

keyterminfo name
without modifiersmodifiers == shift
helpkhlpkHLP
findkfndkFND
selectksltkSLT
homekhomekHOM
endkendkEND
leftkcub1kLFT
rightkcuf1kRIT
upkcuu1kri or kUP or kDN
downkcud1kind
Fx with x from 1 to 35kfxn/a
keypad homeka1n/a
keypad endkc1n/a
keypad page upka3n/a
keypad page downkc3n/a
left tab (aka shift-tab)kcbtn/a
clearkclrn/a
deletekdch1n/a
insertkich1n/a
page downknpkNXT
page upkppkPRV
undokundn/a
backspacekbsn/a

Further if the first table does not match, override with the following from the local terminfo dataset:

keyterminfo name
downkDNxwith x from the following table
modifiersx
shift
alt3
alt + shift4
ctrl5
ctrl + shift6
ctrl + alt7
ctrl + alt + shift8
leftkLFTx
rightkRITx
upkUPx
deletekDCx
endkENDx
homekHOMx
insertkICx
page downkNXTx
page upkPRVx

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.