# Rod's .screenrc # $Id: screenrc 26600 2023-04-18 19:54:14Z rmoffitt $ # automatically detach on hangup autodetach on # disable mutli-user multiuser off # increase scroll-back buffer size defscrollback 10000 # disable visual bell, replace with a message vbell off vbell_msg "bell: window ~%" bell_msg "bell: window ~%" # seconds to pause the screen for visual bell vbellwait 2 # turn off start message startup_message off # set messages timeout to one second msgwait 1 # change to the home directory # chdir # redefine the prefix key to ` and define a literal ` as `` # escape "``" # use 'l' instead of '"' to list sessions bind 'l' windowlist -b # allow bold colors - necessary for some reason attrcolor b ".I" # use bright colors for bold text attrcolor i "+b" # erase background with current bg color defbce "on" # tell screen how to set colors: AB = background, AF=foreground termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # make the output buffer large for (fast) xterms termcapinfo xterm* OL=5000 # tell screen that xterm can switch to dark background and has function keys # termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l' # termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~' # termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~' # special xterm hardstatus: use the window title # termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' # extend the vt100 desciption by some sequences # termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC # terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC # termcapinfo linux C8 # termcap AX ON # termcap C8 ON # termcap XT ON # put useful info in the hardstatus on the last line: hardstatus alwayslastline # hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}' # hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}' hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]' # ensure that bash is used as the shell shell "/usr/bin/bash"