# turn off visual bell vbell off # bufferfile /tmp/screen-exchange # replace ctrl-A by ctrl-O # escape ^Oo # set a big scrolling buffer defscrollback 20000 # Set the caption on the bottom line # %-w all window names & numbers up to the current one. %+w all after the current. # # # modified from this #caption always "%{= kw}%-w%{= kw}%n %t%{-}%+w %-= %u@%H - %LD %d %LM - %C" caption always "%{= kw}%-w%{= kw}%n %t%{-}%+w %-= %h" # useless stuff taken away. # %u other users using this session or something # %H host, doesn't change after ssh # # # make vim go away when it exits altscreen on # syn with X paste buffer #bindkey -m > eval "stuff ' '" writebuf "exec sh -c 'xsel -n < /tmp/screen-exchange'" #screen -t shell1 startup_message off # 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|xterm-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # erase background with current bg color. bce = background color erase defbce "on" # make shift-pgup/pgdn work termcapinfo xterm|xterm-256color ti@:te=\E[2J # can update the hardstatus (xterm title) with a command like this: # hardstatus string "SCREEN @ %H: %-n - %t" # the default scrollback is way too small defscrollback 1000000 # avoid annoying "New screen..." prompt # https://serverfault.com/questions/377479/can-i-disable-the-message-line-when-launching-screen-rr msgwait 0 # starting under systemd for profanity sets term to just screen and then we get no colors term screen.xterm-256color