4 # bufferfile /tmp/screen-exchange
5 # replace ctrl-A by ctrl-O
7 # set a big scrolling buffer
9 # Set the caption on the bottom line
10 # %-w all window names & numbers up to the current one. %+w all after the current.
14 #caption always "%{= kw}%-w%{= kw}%n %t%{-}%+w %-= %u@%H - %LD %d %LM - %C"
15 caption always "%{= kw}%-w%{= kw}%n %t%{-}%+w %-= %h"
16 # useless stuff taken away.
17 # %u other users using this session or something
18 # %H host, doesn't change after ssh
22 # make vim go away when it exits
25 # syn with X paste buffer
26 #bindkey -m > eval "stuff ' '" writebuf "exec sh -c 'xsel -n < /tmp/screen-exchange'"
31 # terminfo and termcap for nice 256 color terminal
32 # allow bold colors - necessary for some reason
34 # tell screen how to set colors. AB = background, AF=foreground
35 termcapinfo xterm|xterm-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
36 # erase background with current bg color. bce = background color erase
39 # make shift-pgup/pgdn work
40 termcapinfo xterm|xterm-256color ti@:te=\E[2J
42 # can update the hardstatus (xterm title) with a command like this:
43 # hardstatus string "SCREEN @ %H: %-n - %t"
45 # the default scrollback is way too small
48 # avoid annoying "New screen..." prompt
49 # https://serverfault.com/questions/377479/can-i-disable-the-message-line-when-launching-screen-rr
52 # starting under systemd for profanity sets term to just screen and then we get no colors
53 term screen.xterm-256color