All about GNU Screen
lugatgt.org
lugatgt.org
I use it on a daily basis for ~10 years.
What still bothers me mightily is that, up to this day, nobody has bothered to get the history scrolling right (neither in tmux, btw). You still have to press an awkward key combination to switch to "copy mode", the normal mechanisms (PGUP, mousewheel, scrollbar) only result in garbage.
I've tried various partial fixes ("altscreen off") but none works properly across sessions or with multiple windows. Years back I even tried to patch screen myself but had to surrender over the (for me) crufty code-base.
And that despite the solution being fairly obvious: Just redraw the entire window while scrolling, just like irssi and plenty other console apps do it. And just like screen itself does it in copy-mode.
I wish someone would finally take on this issue...
termcapinfo xterm|xterm-color ti@:te@
Not 100% there, but does well for me.
It unfortunately doesn't preserve the history during detach/reattach. And the history gets scrambled when you switch between windows.
I've tried both, and the licensing issue aside, I've found I prefer tmux.
Anyway, not wanting to turn this into a gnu vs. bsd, tmux vs. screen argument, but I didn't eve know tmux existed until someone pointed me to it, so I'm just passing on the knowledge.
http://www.linuxized.com/2010/05/switching-from-gnu-screen-t...
Plus the more liberal BSD license but that's more of an ideological issue.
http://unix.stackexchange.com/questions/549/tmux-vs-gnu-scre...
In particular, when i've played with screen, i found that i was frequently stymied by the broken abstraction of the way screen stored its state vs what I wanted to do.
byobu sadly doesn't work on macbooks, but it looks cool!
screen -d -m -S mysession
screen -S mysession -X screen -a -tjob1 'top'
Using -X you can call the commands available within GNU Screen to control the session or the windows. screen -a window1 -X stuff 'import sys'
would send 'import sys' to whatever app was reading STDIN on window1.http://blog.dustinkirkland.com/2008/12/ubuntu-server-include...
If I had a nickel for every time I've done "select all" when I wanted to quickly switch back to the last active tab.
$ screen -e '``'
I suspect a screen fork which simply adopts new standard emacs/bash-compatible defaults could eventually overtake the original in usage.