Next: Digraph, Previous: Control Sequences, Up: Virtual Terminal [Contents][Index]
In order to do a full VT100 emulation screen has to detect
that a sequence of characters in the input stream was generated
by a keypress on the user’s keyboard and insert the VT100
style escape sequence. Screen has a very flexible way of doing
this by making it possible to map arbitrary commands on arbitrary
sequences of characters. For standard VT100 emulation the command
will always insert a string in the input buffer of the window
(see also command stuff, see Paste).
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 Bindkey for further details on the syntax and examples.
Here is the table of the default key bindings. (A) means that the command is executed if the keyboard is switched into application mode.
Key name Termcap name Command ----------------------------------------------------- Cursor up ku stuff 033円[A stuff 033円OA (A) Cursor down kd stuff 033円[B stuff 033円OB (A) Cursor right kr stuff 033円[C stuff 033円OC (A) Cursor left kl stuff 033円[D stuff 033円OD (A) Function key 0 k0 stuff 033円[10~ Function key 1 k1 stuff 033円OP Function key 2 k2 stuff 033円OQ Function key 3 k3 stuff 033円OR Function key 4 k4 stuff 033円OS Function key 5 k5 stuff 033円[15~ Function key 6 k6 stuff 033円[17~ Function key 7 k7 stuff 033円[18~ Function key 8 k8 stuff 033円[19~ Function key 9 k9 stuff 033円[20~ Function key 10 k; stuff 033円[21~ Function key 11 F1 stuff 033円[23~ Function key 12 F2 stuff 033円[24~ Home kh stuff 033円[1~ End kH stuff 033円[4~ Insert kI stuff 033円[2~ Delete kD stuff 033円[3~ Page up kP stuff 033円[5~ Page down kN stuff 033円[6~ Keypad 0 f0 stuff 0 stuff 033円Op (A) Keypad 1 f1 stuff 1 stuff 033円Oq (A) Keypad 2 f2 stuff 2 stuff 033円Or (A) Keypad 3 f3 stuff 3 stuff 033円Os (A) Keypad 4 f4 stuff 4 stuff 033円Ot (A) Keypad 5 f5 stuff 5 stuff 033円Ou (A) Keypad 6 f6 stuff 6 stuff 033円Ov (A) Keypad 7 f7 stuff 7 stuff 033円Ow (A) Keypad 8 f8 stuff 8 stuff 033円Ox (A) Keypad 9 f9 stuff 9 stuff 033円Oy (A) Keypad + f+ stuff + stuff 033円Ok (A) Keypad - f- stuff - stuff 033円Om (A) Keypad * f* stuff * stuff 033円Oj (A) Keypad / f/ stuff / stuff 033円Oo (A) Keypad = fq stuff = stuff 033円OX (A) Keypad . f. stuff . stuff 033円On (A) Keypad , f, stuff , stuff 033円Ol (A) Keypad enter fe stuff 015円 stuff 033円OM (A)
Next: Digraph, Previous: Control Sequences, Up: Virtual Terminal [Contents][Index]