3 ms·
You 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 s
by enriquto 6y ago
You 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.