]> git.phdru.name Git - dotfiles.git/commitdiff
.screenrc: Use the alternate screen of the xterm-like terminal
authorOleg Broytman <phd@phdru.name>
Tue, 11 Dec 2018 12:22:51 +0000 (15:22 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 11 Dec 2018 12:22:51 +0000 (15:22 +0300)
Still doesn't work in Debian.

.screenrc

index 1f4850d9150e97fb91825ddb38cb9fe74a6752a8..db73a6ad1054369b787c10142ac279043e76d91f 100644 (file)
--- 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