4 ms·
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, wh
by cm3 10y ago
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.
- ymse 10y agoWhy 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.
- cm3 10y agoNice, 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.
- lewiseason 10y agoThe 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?
- ymse 10y agoThe 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.