Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
man:input_translation [2010-12-28 16:11]
206.125.165.20 CXPHJjiWz
man:input_translation [2021-02-19 20:07] (current)
asciiphil old revision restored (2010-12-28 16:22)
Line 1: Line 1:
-cR4AXV  <href="http://trjueahxzywl.com/">trjueahxzywl</a>, [url=http://ncptdklektcp.com/]ncptdklektcp[/url][link=http://erzhfbybzkij.com/]erzhfbybzkij[/link], http://klbihcrydmwh.com/+====== Input Translation ====== 
 + 
 +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 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 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 typeit is possible to bind commands to the termcap name of the keys.  ''screen'' will insert the correct binding after each reattach.  See the ''[[commands:bindkey]]'' command 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''       | ''[[commands:stuff]\033[A''\\ ''[[commands:stuff]] \033OA'' (A) | 
 +| Cursor down     | ''kd''       | ''[[commands:stuff]] \033[B''\\ ''[[commands:stuff]] \033OB'' (A) | 
 +| Cursor right    | ''kr''       | ''[[commands:stuff]] \033[C''\\ ''[[commands:stuff]] \033OC'' (A) | 
 +| Cursor left     | ''kl''       | ''[[commands:stuff]] \033[D''\\ ''[[commands:stuff]] \033OD'' (A) | 
 +| Function key 0  | ''k0''       | ''[[commands:stuff]] \033[10~''
 +| Function key 1  | ''k1''       | ''[[commands:stuff]] \033OP''
 +| Function key 2  | ''k2''       | ''[[commands:stuff]] \033OQ''
 +| Function key 3  | ''k3''       | ''[[commands:stuff]] \033OR''
 +| Function key 4  | ''k4''       | ''[[commands:stuff]] \033OS''
 +| Function key 5  | ''k5''       | ''[[commands:stuff]] \033[15~''
 +| Function key 6  | ''k6''       | ''[[commands:stuff]] \033[17~''
 +| Function key 7  | ''k7''       | ''[[commands:stuff]] \033[18~''
 +| Function key 8  | ''k8''       | ''[[commands:stuff]] \033[19~''
 +| Function key 9  | ''k9''       | ''[[commands:stuff]] \033[20~''
 +| Function key 10 | ''k;''       | ''[[commands:stuff]] \033[21~''
 +| Function key 11 | ''F1''       | ''[[commands:stuff]] \033[23~''
 +| Function key 12 | ''F2''       | ''[[commands:stuff]] \033[24~''
 +| Home            | ''kh''       | ''[[commands:stuff]] \033[1~''
 +| End             | ''kH''       | ''[[commands:stuff]] \033[4~''
 +| Insert          | ''kI''       | ''[[commands:stuff]] \033[2~''
 +| Delete          | ''kD''       | ''[[commands:stuff]] \033[3~''
 +| Page up         | ''kP''       | ''[[commands:stuff]] \033[5~''
 +| Page down       | ''kN''       | ''[[commands:stuff]] \033[6~''
 +| Keypad 0        | ''f0''       | ''[[commands:stuff]] 0''\\ ''[[commands:stuff]] \033Op'' (A) | 
 +| Keypad 1        | ''f1''       | ''[[commands:stuff]] 1''\\ ''[[commands:stuff]] \033Oq'' (A) | 
 +| Keypad 2        | ''f2''       | ''[[commands:stuff]] 2''\\ ''[[commands:stuff]] \033Or'' (A) | 
 +| Keypad 3        | ''f3''       | ''[[commands:stuff]] 3''\\ ''[[commands:stuff]] \033Os'' (A) | 
 +| Keypad 4        | ''f4''       | ''[[commands:stuff]] 4''\\ ''[[commands:stuff]] \033Ot'' (A) | 
 +| Keypad 5        | ''f5''       | ''[[commands:stuff]] 5''\\ ''[[commands:stuff]] \033Ou'' (A) | 
 +| Keypad 6        | ''f6''       | ''[[commands:stuff]] 6''\\ ''[[commands:stuff]] \033Ov'' (A) | 
 +| Keypad 7        | ''f7''       | ''[[commands:stuff]] 7''\\ ''[[commands:stuff]] \033Ow'' (A) | 
 +| Keypad 8        | ''f8''       | ''[[commands:stuff]] 8''\\ ''[[commands:stuff]] \033Ox'' (A) | 
 +| Keypad 9        | ''f9''       | ''[[commands:stuff]] 9''\\ ''[[commands:stuff]] \033Oy'' (A) | 
 +| Keypad +        | ''f+''       | ''[[commands:stuff]] +''\\ ''[[commands:stuff]] \033Ok'' (A) | 
 +| Keypad -        | ''f-''       | ''[[commands:stuff]] -''\\ ''[[commands:stuff]] \033Om'' (A) | 
 +| Keypad *        | ''f*''       | ''[[commands:stuff]] *''\\ ''[[commands:stuff]] \033Oj'' (A) | 
 +| Keypad        | ''f/''       | ''[[commands:stuff]] /''\\ ''[[commands:stuff]] \033Oo'' (A) | 
 +| Keypad =        | ''fq''       | ''[[commands:stuff]] =''\\ ''[[commands:stuff]] \033OX'' (A) | 
 +| Keypad        | ''f.''       | ''[[commands:stuff]] .''\\ ''[[commands:stuff]] \033On'' (A) | 
 +| Keypad ,        | ''f,''       | ''[[commands:stuff]] ,''\\ ''[[commands:stuff]] \033Ol'' (A) | 
 +| Keypad enter    | ''fe''       | ''[[commands:stuff]] \015''\\ ''[[commands:stuff]] \033OM'' (A) | 

User Tools