From b8fb628362b6e083c06b2863b205933b4e6023d1 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Tue, 18 Sep 2012 17:58:15 -0500 Subject: [PATCH] .screenrc: altscreen=on (alternate buffer) xterm-style emulators support the notion of an alternate buffer with a separate scroll-back history than the "normal" buffer. By default GNU screen has the alternate buffer disabled, but we want it enabled so that alternate buffer switching works as expected (when using an xterm-supporting terminal emulator) for applications that try to use that it, e.g. vim, etc. --- .screenrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.screenrc b/.screenrc index 054cb18..c06493d 100644 --- a/.screenrc +++ b/.screenrc @@ -33,9 +33,10 @@ attrcolor b ".I" # allow bold colors termcapinfo xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # tell screen how to set colors. AB = background, AF=foreground defbce on # erase background with current bg color -# disable altscreen, so PuTTy + screen play nicely together +# enable altscreen, and disable ti/te initializations to allow PuTTy scrollback. +# (http://www4.cs.fau.de/~jnweiger/screen-faq.html) +altscreen on termcapinfo xterm* 'ti@:te@' -altscreen off # xterm understands both im/ic and doesn't have a status line. # Note: Do not specify im and ic in the real termcap/info file as -- 2.45.2