3 ms·
Absolutely! I often use cat in tmux instead of less because of this. Will try xterm now, too.
by mkesper 6y ago
Absolutely! I often use cat in tmux instead of less because of this. Will try xterm now, too.
- enriquto 6y agoYou can use the -X option to less to avoid it clearing the screen. To set this option by default, put "export LESS=-X" on your profile. If you want the same sane behavior for vim, add "set t_ti= t_te=" to your .vimrc.
- linsomniac 6y agoIndeed, but it's more painful to get these things set across all the systems and accounts I use, even given Ansible. Doable, but titeInhibit is kind of nice. :-) With Kitty, which I've been playing with and doesn't support titeInhibit, it requires deploying a termcap package everywhere, which is also painful, but I ended up building a version with those escape codes removed, which was kind of a benefit of having to use and deploy a custom termcap.
- enriquto 6y agoNote that you can also globally disable the alternate screen in xterm, as explained elsewhere on this thread.
- wnoise 6y agoIn addition to the sibling comment, tmux has the per-pane option 'alternate-screen'. You can set its default with 'set-option -g alternate-screen off'