by josteink · 10y ago · 0 comments
In the end (rather quickly actually) I went back to screen. It's simple. It works. It's reliable, mature and stable. It has the "proper" keybindings which has been around for decades for this kind of software.
Whatever tmux was supposed to provide of additional value I could not find.
Edit: I see that this article (from 2010) says screen doesn't have a menu to select buffers. That's factually incorrect. That feature must have been there already before tmux was started?
So, to get the same usability as in screen, one is forced to add things like these:
bind-key C-i last-window
bind-key C-n next-window
bind-key C-p previous-window
bind-key C-c new-window
Otherwise, it takes longer to activate (use) the bindings.Before anyone asks, I've added suggested config which should have been a remedy, but none of the following restores screen's quick binding access:
unbind C-i
set -g prefix C-i
bind-key C-i send-prefix # Set escape character to Shift-Ctrl-^ and meta character to ^
escape ^^^
# Get rid of stupid visual bell wait.
vbellwait 0
vbell_msg ^G
bell_msg ^G
# Status line.
hardstatus on
hardstatus alwayslastline
hardstatus string "%H|%w%=|%d/%m %c"Are you sure?
Could it be the author just wanted a BSD licensed screen alternative or some other reason(s)?
"The keybindings are different" argument seems quite silly since you can easily change them to whatever you want. It's like when people say they will not use Lua because indices start at 1 instead of 0.
tmux may be thought of as an alternative, not a replacement.
Whether that's correct is an open question.
Example: If I start a build world in a screen window, then detach and later I want to get a "screen shot" or "screen grab" of the output without re-attaching, how do I do that?
Also, tmux's "clipboard buffer(s)", e.g., tmux loadb, tmux lsb, etc., seems a little more versatile than screen, but I'm open to suggestions from screen users how to do these things in screen.
Here's what I use in tmux for the Example:
cat tt
case $1 in
""|-b|-E|-S|-t)
tmux capturep $@
exec tmux showb $@
;;
*)exit
esac(find-window) is major feature for me (91 windows currently). That and no more "Suddenly the Dungeon collapses!! - You die..." :)