startup_message off
-termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
-
+termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
+nonblock on
+obuflimit 12000
+altscreen on
+# terminfo and termcap for nice 256 color terminal
+# allow bold colors - necessary for some reason
+attrcolor b ".I"
+# tell screen how to set colors. AB = background, AF=foreground
+#termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
+# erase background with current bg color
+defbce "on"
+term screen-256color