title: Tmux: how do I bind function keys to commands?
body: <p>How do I bind a function key (e.g. F1, which generates <code>ESC O P</code>) to a tmux command (e.g. "next window", <code>ctrl-B n</code>)?</p>
  
  <p>Context: ssh running on mac into tmux session on linux.  I'm pressing <code>fn-F1</code> on the mac keyboard to generate the <code>ESC O P</code>.</p>