From 35e45d987994a80c514e19963605ddb4b18f26ac Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 11 Dec 2018 15:22:51 +0300 Subject: [PATCH] .screenrc: Use the alternate screen of the xterm-like terminal Still doesn't work in Debian. --- .screenrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.screenrc b/.screenrc index 1f4850d..db73a6a 100644 --- a/.screenrc +++ b/.screenrc @@ -77,5 +77,14 @@ termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' # #termcapinfo xterm*|rxvt* ti@:te@ +# Use the alternate screen of the xterm-like terminal +# https://unix.stackexchange.com/a/261939 +#termcapinfo xterm* 'ti=\E[?1049h:te=\E[?1049l' +#termcapinfo rxvt* 'ti=\E7\E[?47h:te=\E[2J\E[?47l\E8' + +# Do not use the alternate screen at all +# run `tput smcup; screen -S test; tput rmcup` +#termcapinfo xterm*|rxvt* 'ti=:te=' + # Enable non-blocking mode to better cope with flaky ssh connections. defnonblock 5 -- 2.39.5