I’ve started using tmux, but found out that the standard keyboard bindings to resize panes (C-b C-) doesn’t work in Mac OS X’s Terminal.app. I found this post very helpful.

The key ingredient is to add custom key settings (Preferences -> Settings -> Keyboard). I needed to change the “control cursor left” and “control cursor right”, and add “control cursor up” and “control cursor down”. The correct escape sequences (“Actions”) are:

  • Up: Escape[1;5A  (pressing Escape will print \033)
  • Down: Escape[1;5B
  • Right: Escape[1;5C
  • Left: Escape[1;5D

Update: OS X 10.10 (Yosemite) seems to have these correct by default.