Because the sequences generated by a keypress can change after a reattach from a different terminal type, it is possible to bind commands to the termcap name of the keys. Screen will insert the correct binding after each reattach. See the bind- key command for further details on the syntax and examples.
Key name Termcap Command Application
name mode
Cursor up ku stuff ␛[A stuff ␛OA
Cursor down kd stuff ␛[B stuff ␛OB
Cursor right kr stuff ␛[C stuff ␛OC
Cursor left kl stuff ␛[D stuff ␛OD
Function key 0 k0 stuff ␛[10~
Function key 1 k1 stuff ␛OP
Function key 2 k2 stuff ␛OQ
Function key 3 k3 stuff ␛OR
Function key 4 k4 stuff ␛OS
Function key 5 k5 stuff ␛[15~
Function key 6 k6 stuff ␛[17~
Function key 7 k7 stuff ␛[18~
Function key 8 k8 stuff ␛[19~
Function key 9 k9 stuff ␛[20~
Function key 10 k; stuff ␛[21~
Function key 11 F1 stuff ␛[23~
Function key 12 F2 stuff ␛[24~
|