title: How to bind Ctrl-Tab and Ctrl-Shift-Tab in tmux for mintty
body: <p>I would like to bind <kbd>CTRL</kbd>+<kbd>TAB</kbd> and <kbd>CTRL</kbd>+<kbd>SHIFT</kbd>+<kbd>TAB</kbd> (without prefix) to tmux functions, under minTTY/cygwin.</p>
  
  <p>I have tried the following tmux configuration:  </p>
  
  <pre><code>set-option -gw xterm-keys on
  bind-key -n C-Tab next-window
  bind-key -n "^[[1;5I" next-window # tmux doesn't recognize
  bind-key -n "\e[1;5I" next-window # tmux doesn't recognize
  </code></pre>
  
  <p>If I hit <kbd>CTRL</kbd>+<kbd>TAB</kbd> after launching tmux, I get a bell sound. If I hit it after the tmux prefix, it prints <code>1;5I</code>.</p>
  
  <p>I am using minTTY 2.2.3 under cygwin/Babun. I have disabled minTTY's handling of this key combo via its options (<code>SwitchShortcuts=no</code> in <code>.minttyrc</code>).  </p>
  
  <p>For reference, <kbd>CTRL</kbd>+<kbd>TAB</kbd> and <kbd>CTRL</kbd>+<kbd>SHIFT</kbd>+<kbd>TAB</kbd> work for cycling <code>screen</code> windows with the following .screenrc:  </p>
  
  <pre><code>bindkey "^[[1;5I" next
  bindkey "^[[1;6I" prev
  </code></pre>