to do a VT100 emulation, screen detects a sequence of characters in the input stream generated by a keypress on the user's keyboard and insert the VT100 style escape sequence. IT does this by making it possible to map arbitrary commands on arbitrary sequences of characters. For standard VT100 emulation the command inserts a string in the input buffer of the window (see also command stuff in the command table).

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.

Default key bindings.

Å the command is executed if the keyboard is in application mode.
       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~
       Key name          Termcap Command         Application
                          name                   mode
       Home        kh    stuff [1~
       End         kH    stuff [4~
       Insert      kI    stuff [2~
       Delete      kD    stuff [3~
       Page up     kP    stuff [5~
       Page down   kN    stuff [6~
       Keypad 0    f0    stuff 0         stuff Op
       Keypad 1    f1    stuff 1         stuff Oq
       Keypad 2    f2    stuff 2         stuff Or
       Keypad 3    f3    stuff 3         stuff Os  
       Keypad 4    f4    stuff 4         stuff Ot
       Keypad 5    f5    stuff 5         stuff Ou
       Keypad 6    f6    stuff 6         stuff Ov   
       Keypad 7    f7    stuff 7         stuff Ow
       Keypad 8    f8    stuff 8         stuff Ox
       Keypad 9    f9    stuff 9         stuff Oy
       Keypad +    f+    stuff +         stuff Ok
       Keypad -    f-    stuff -         stuff Om
       Keypad *    f*    stuff *         stuff Oj 
       Keypad /    f/    stuff /         stuff Oo 
       Keypad =    fq    stuff =         stuff OX 
       Keypad .    f.    stuff .         stuff On  
       Keypad ,    f,    stuff ,         stuff Ol    
       Keypad enter fe    stuff \015      stuff OM