102 points · by lelf · 10y ago · 64 comments
Does this mean I can preserve scrollback among each terminal? If so, I'll switch tomorrow morning. That's screen's biggest drawback.
What they seem to describe is altscreen behaviour which can be disabled with "altscreen off" in .screenrc .
unbind C-b
set -g prefix C-a
bind C-a send-prefix
fwiw, the shortcut to enter copy mode in tmux and screen is the same C-a [It's nice.
One thing to keep in mind is to have it look for local files/scripts to source too. That way you can keep per-system tweaks out of the global runtime configuration.
Also, passwords. Don't put passwords, or anything you don't want leaked in the rc repo. You could have it private, but that's not fool proof.
Ubuntu repos include a nice package called byobu[1] that is a layer on top of tmux (or screen) that mostly makes copy/paste work like screen, while keeping the working scrollback from tmux instead of making it compatible with the usually-broken (in my experience) screen scrollback.
Byobu works well for me, so I'm using tmux on most of my servers now but it feels almost like screen.
[1] http://byobu.co/
Edit: I guess that was obvious considering this gnu screen announcement contains as much (or more) discussion about tmux as screen.
Also, the definition of one license is "more free" than the other is completely subjective and is wholly dependent on the perspective of the licensee.
That is just false. BSD has fewer restrictions. GPL has more restrictions. No subjective interpretation needed.
Without it you do not have the mental yardstick to evaluate things properly.
Be careful! New screen tonight.Ubuntu 14.04 server is running tmux.
I ssh into that server from an osx laptop and attach to the tmux session. After a ton of configuration mouse actions mostly work (copy/paste is always wonky).
I also ssh into that server from an Ubuntu laptop. The same configuration I needed to get mouse working for osx is no longer applicable.
I've never even thought of writing a screenrc and it's always worked great.
* 4.3.0: June 2015
* 4.2.1: April 2014
I've heard many people say that they use tmux because screen never gets updated.screen-4.0.3 2008-08-07
screen-4.2.0 2014-04-27
(I mostly hear about this stuff because I still used screen and tons of people are like "why don't you tmux")
* 4.2.0: Apr 2014
* 4.0.3: Aug 2008
* 4.0.2: Jan 2004
* 3.9.15: Mar 2003
* 3.9.11: Feb 2002
* 3.9.10: Sep 2001
> I've heard many people say that they use tmux because screen never gets updated.Screen releases did slow down in the early 2000s. It was probably considered feature-complete, so I can understand. I hope the existence of tmux will push both projects to improve themselves, preferably without developing featuritis.
I share your feelings, I hope it pushes both too.
Timed releases of screen might be a good idea.
Screen is still awesome and I have taught many folks to use it.
This isn't the first time this has happened, either - last time a small patch was bandied around (I think I saw it on the Debian bug tracker) that fixed the problem.
FWIW, I've found that CTLR-j is the best choice for the primary escape sequence. As an emacs user CTRL-a was unacceptable as was pretty much CTRL-<everything else>.
For another screen session that I run within a terminal in my main session (don't ask), I use Ctrl-].
(There's at least one keyboard/terminal setup that doesn't let me type the null character. When I use that, I temporarily change the escape character.)