Skip to main content

.screenrc

(2025-08-31)

# Status line
hardstatus alwayslastline
#hardstatus string '%H %{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%H %{= kG}%c:%s%{-}%{= KW}%50> %n:%t'
# scrollback depth
defscrollback 10000
# detach on hangup
autodetach on
# no startup msg
startup_message off
# sane-er window list
windowlist string "%4n %h%=%f"
# because we like rscreen, we need to set each new session to be a
#  login shell so the shit like .bash_profile gets run, since the
#  invoking rscreen session isn't really a login shell
shell -$SHELL
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
# (This fixes the "Aborted because of window size change" konsole symptoms found
#  in bug #134198)
# (In practice, this stops some terminals from resizing to 80 columns when screen starts or re-attaches)
termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'