title: Unable to use Screen efficiently in Mac's Terminal
body: <p>The post summarizes problems in using Screen in Mac's terminal when you have the following in your .zshrc</p>
  
  <pre><code>if [[ $STY = '' ]] then screen -xR; fi 
  </code></pre>
  
  <ol>
  <li><strong><a href="https://stackoverflow.com/questions/810025/unable-to-use-screen-efficiently-in-macs-terminal/810395#810395">Solution #1 is not working but Solution #2 works</a>:</strong> Clipboard programs: pbcopy, pbpaste and xsel do not work at all</li>
  <li>Bug in Vim when used in Mac: <a href="https://stackoverflow.com/questions/809935/unable-to-solve-a-bug-in-vims-tlist-with-screen/809975#809975">Unable to have no scattered windows in Screen by .Xresources.</a></li>
  <li><strong><a href="https://stackoverflow.com/questions/810025/unable-to-use-screen-efficiently-in-macs-terminal/810069#810069">Solved</a>:</strong> Ctrl A stops working in terminal. This suggests me that Screen's keyboard bindings need to be changed slightly. </li>
  <li><strong><a href="https://stackoverflow.com/questions/810025/unable-to-use-screen-efficiently-in-macs-terminal/3423480#3423480">Solved</a>:</strong> The scrolling with touchpad does not work. By editing your .screenrc the scrollback works normally (including touchpad)</li>
  <li><strong><a href="https://stackoverflow.com/questions/815915/unable-to-bind-hjkl-to-dlth-in-screens-c-a-esc-mode">Solved</a></strong>: Unable to have Dvorak keybindings for Screen for moving in Scrollback mod.</li>
  <li><a href="https://stackoverflow.com/questions/816302/unable-to-pbcopy-xsel-inside-screen">How can you use pbcopy/pbpaste/xsel inside Screen?</a></li>
  </ol>