X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.screenrc;h=1b17439f2c91aecbe15585e3ea1090bf2bd46763;hb=5597d2140aa9f6012b84507211cac4d117a3fbbb;hp=1f4850d9150e97fb91825ddb38cb9fe74a6752a8;hpb=3929139211192ca2fda3abea1ac391fbd5f54d6f;p=dotfiles.git diff --git a/.screenrc b/.screenrc index 1f4850d..1b17439 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