+
+# Set the hardstatus prop on gui terms to set the titlebar/icon title
+termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
+
+# Fix alternate screen support, for some reason this doesn't get read from terminfo correctly
+termcapinfo xterm* ti=\E[?1049h:te=\E[?1049l