3 ms·
I used GNU screen for ten years or so and then switched to tmux in 2013. My tmux config to mimics screen's in most places, (prefix key, copy mode, etc). As othe
by aorth 9y ago
I used GNU screen for ten years or so and then switched to tmux in 2013. My tmux config to mimics screen's in most places, (prefix key, copy mode, etc). As others have pointed out, tmux has a newer code base, support for newer terminal features, less security vulnerabilities, etc. I've never looked back.
https://github.com/alanorth/dotfiles/blob/master/.tmux.conf https://github.com/alanorth/dotfiles/blob/master/.tmux.conf
- marktangotango 9y agoI’ve never found a solution for this, so I’ll ask here; I always have a problem where vim in a screen session fails to display syntax highlihting, and TERM is xterm in both, any idea? Specifically I’ll ssh to a remote and vim an Apache config is highlighted, start screen, vim the same file and no highlighting.
- u801e 9y agoI haven't had that problem. I start screen using the -T parameter with a value of xterm-256color. Do you get color output with ls or grep outside of screen, but not within a screen session? That may narrow down the problem to vim rather than screen.
- tfmatt 9y agoTwo things to try after opening a new screen window: 1) Enter "bash" then vim file.java (some file) 2) Enter :syntax on
- pfranz 9y agoI picked up tmux instead of screen years ago and wish I had stuck with screen. screen has more ubiquity. Even if tmux is installed, it might be too old and not contain the features I need. Hopefully, those problems solve themselves, but it might take a decade or two.