From: Oleg Broytman Date: Tue, 11 Dec 2018 13:02:02 +0000 (+0300) Subject: .screenrc: Remove ti/te and run screen wrapped with tput calls X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=05e6da1392c779adb7e8d7aebbea7ff25fab6140 .screenrc: Remove ti/te and run screen wrapped with tput calls --- diff --git a/.screenrc b/.screenrc index db73a6a..1b17439 100644 --- a/.screenrc +++ b/.screenrc @@ -84,7 +84,7 @@ termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' # Do not use the alternate screen at all # run `tput smcup; screen -S test; tput rmcup` -#termcapinfo xterm*|rxvt* 'ti=:te=' +termcapinfo xterm*|rxvt* 'ti=:te=' # Enable non-blocking mode to better cope with flaky ssh connections. defnonblock 5 diff --git a/bin/screen b/bin/screen new file mode 100755 index 0000000..b2fbe11 --- /dev/null +++ b/bin/screen @@ -0,0 +1,9 @@ +#! /bin/sh + +if [ "$1" = "-ls" -o "$1" = "--list" ]; then + list=true +fi + +test "$list" = true || tput smcup +/usr/bin/screen "$@" +test "$list" = true || tput rmcup