Unable to use Screen efficiently in Mac's Terminal

Léo Léopold Hertz 준영 picture Léo Léopold Hertz 준영 · May 1, 2009 · Viewed 15.5k times · Source

The post summarizes problems in using Screen in Mac's terminal when you have the following in your .zshrc

if [[ $STY = '' ]] then screen -xR; fi 
  1. Solution #1 is not working but Solution #2 works: Clipboard programs: pbcopy, pbpaste and xsel do not work at all
  2. Bug in Vim when used in Mac: Unable to have no scattered windows in Screen by .Xresources.
  3. Solved: Ctrl A stops working in terminal. This suggests me that Screen's keyboard bindings need to be changed slightly.
  4. Solved: The scrolling with touchpad does not work. By editing your .screenrc the scrollback works normally (including touchpad)
  5. Solved: Unable to have Dvorak keybindings for Screen for moving in Scrollback mod.
  6. How can you use pbcopy/pbpaste/xsel inside Screen?

Answer

dmw picture dmw · Aug 6, 2010

In screenrc:

# Make xterm scrolling work properly with screen.
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@

Works for Terminal.app too.