title: How to get control characters for Ctrl+Left from terminfo in Zsh
body: <p>I'm using <code>terminfo</code> to find out what they control sequence is for the Left (Right, ...) key in my terminal, so that I can then map it to something useful (move left) in my <code>zshrc</code> like this:</p>
  
  <pre><code>typeset -A key
  left=${terminfo[kcub1]}
  bindkey "$left" backward-char
  </code></pre>
  
  <p>(there's some other things to get this to work, see <a href="http://zshwiki.org/home/zle/bindkeys" rel="noreferrer">source</a>).
  This is helpful because I use several terminal emulators and these control sequences change. e.g. I use Gnome Terminal on Ubuntu to <code>ssh</code> to a Debian box and then to use <code>tmux</code> inside that...</p>
  
  <p><strong>But how can I find out the key codes for the CTRL+LEFT</strong> (and RIGHT...) from terminfo? I'd like to map these to word left/right.</p>