Hacker News new | ask | show | jobs
by steveklabnik 3657 days ago
While this is true, screen has not been getting some features that people see as important, like vertical splits.

(I mostly hear about this stuff because I still used screen and tons of people are like "why don't you tmux")

4 comments

I use screen because tmux forces me to explicitly define quick bindings for each binding where I don't want to lift my finger before pressing the letter. So, where I can write `C-a c` in screen without taking my finger off the keyboard, I have to explicitly add `bind-key C-c new-window` in tmux.conf for this. Otherwise it's not as ergonomic as in screen, and now I have to do configure this for each key I use, which granted isn't that many, but still it's a nuisance without a good justification. Tmux is fine for me if I ignore that. But some people miss certain screen features in tmux, so it's fair to mention that as well.
Why don't you just change the prefix key instead?

  unbind C-b
  set -g prefix C-a
  bind-key C-a send-prefix
I use C-z FWIW.
Nice, that seems to work. Is there a downside to using this?

I had to still explicitly add `bind-key C-a previous-window` to emulate screen's `C-a a` to switch between last windows.

The above is how most people first configure tmux, since C-b is just awkward. `bind-key C-a send-prefix` is optional of course, but is used to forward C-a to the active window (beginning-of-line in shell and emacs). How would you do that in screen?

The default for `previous-window` is `prefix-p`. Run `tmux list-keys` to see all active bindings.

The only real downsites are if you use screen/minicom/etc inside tmux you tend to mash Ctrl-a quite a lot, but if anything that's easier than keeping track of which key goes with which level?
screen supports vertical splits for me, on Debian 8
Vertical splits are present from 4.2.0 up.
Isn't a vertical split `Ctrl A, |`?
To reply to you and my other sibling, last I checked, some distros added this, but it's not upstream.