title: what is terminal escape sequence for ctrl + arrow (left, right,...) in TERM=linux
body: <p>I am building a terminal window in a browser (sth. like ajaxterm) and don't know which escape sequence to send to ssh tunnel (opened via <code>paramiko.SSHClient().invoke_shell(term='linux')</code>). </p>
  
  <p>I have found a <a href="http://www.linuxquestions.org/questions/programming-9/bash-case-with-arrow-keys-and-del-backspace-etc-523441/">key logger</a> and tried it in a terminal with $TERM == 'linux', but it returns the same sequence for <code>ctrl+left</code> and <code>left</code> (27,91,68). </p>
  
  <p>If I try keylogger in another terminal (with $TERM == 'xterm') I get the codes (27,91,49,59,53,68). But these codes do not move generate the expected output from SSH channel (which would move cursor one word left on a normal linux shell). That is true even if I start paramiko with term='xterm'.</p>
  
  <p>Any idea what sequence I should use? Or why the above sequence doesn't work?</p>
  
  <p><strong>UPDATE</strong>: I would be happy to use another terminal type (not "linux"), but unfortunately <a href="https://github.com/selectel/pyte">pyte</a> works with VTxxx terminals only (I believe "linux" is vt220-like terminal - anyway, it works), so xterm doesn't work properly.</p>