X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.screenrc;h=1b17439f2c91aecbe15585e3ea1090bf2bd46763;hp=4580d72d432893908b2656464883f125f01028be;hb=1751a6dde6882ca2ec77adb6ae6181d05701147c;hpb=ac0da9d2010e35afeff0500e395e4efa6abd01df diff --git a/.screenrc b/.screenrc index 4580d72..1b17439 100644 --- a/.screenrc +++ b/.screenrc @@ -61,10 +61,10 @@ termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007 # for inactive windows - black on cyan # for active window - white on blue hardstatus alwayslastline -hardstatus string "%{= ck}%-w%{= bw}%n %t%{-}%+w %-=" +hardstatus string "%{= ck}%-w%{= bw}%n%f %t%{-}%+w %-=" # set these terminals up to be 'optimal' instead of vt100 -termcapinfo xterm*|linux*|rxvt*|Eterm* OP +termcapinfo xterm*|rxvt*|linux*|Eterm* OP # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E> # (This fixes the "Aborted because of window size change" konsole symptoms found @@ -75,7 +75,16 @@ termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' # following termcapinfo line which tells xterm to use the normal screen buffer # (which has scrollback), not the alternate screen buffer. # -#termcapinfo xterm|xterms|xs|rxvt ti@:te@ +#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