From 05e6da1392c779adb7e8d7aebbea7ff25fab6140 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 11 Dec 2018 16:02:02 +0300 Subject: [PATCH] .screenrc: Remove ti/te and run screen wrapped with tput calls --- .screenrc | 2 +- bin/screen | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 bin/screen 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 -- 2.39.5