title: tmux on OSX - lock server/session not working
body: <p>I am on OSX Mountain Lion. I've configured tmux.conf to lock the screen, but the screen only flashes, no locking takes place. (fyi, when i used GNU-screen, the screen did lock).  </p>
  
  <p>My system does not have a lock/slock or vlock, nor could i find these on homebrew or macports. I understand that Screen uses its own internal locking whereas tmux uses external locking. I do not care whether I am asked to enter a new passkey or the system password is used.  So how to get tmux to lock the session/terminal ?</p>
  
  <pre><code># Screen lock
  bind-key C-x    lock-server
  bind-key x      lock-server
  bind-key -n M-x lock-server
  set-option -g   lock-after-time 0
  set-option -g   lock-server on
  # set-option -g   lock-command "vlock"
  </code></pre>
  
  <p>p.s. I am aware of other alternatives, but these typically require a mouse (hot corners) or a Mac keyboard (eject key). </p>