]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .screenrc
.minttyrc: Track .minttyrc file
[dotfiles.git] / .screenrc
1 # -------------------------------------------------------------------
2 # Settings
3 # -------------------------------------------------------------------
4 crlf off # no DOS-style linebreaks
5 startup_message off # bypass GPL notice (we're aware)
6 vbell off # use audio bell
7 defscrollback 15000 # big scrollback
8 shell bash # don't start login shells
9 shelltitle "sh" # no title by default - set in PS1
10 nethack off # makes error messages cryptic
11 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
12 autodetach on
13 term screen # $TERM="screen"
14
15 # use UTF-8
16 defutf8 on
17 defencoding UTF-8
18 setenv LANG 'en_US.UTF-8'
19
20 # status line to display a bar at the bottom listing the window
21 # names and highlighting the current windowname.
22 # (http://www.ibm.com/developerworks/aix/library/au-gnu_screen/index.html)
23 # (http://superuser.com/questions/212392/how-to-include-screens-session-name-in-hardstatus)
24 hardstatus alwayslastline '%{= K}%-w%{+b .KW}%n %t%{-}%+w %=%{..b} %H '
25 #backtick 0 30 30 sh -c 'screen -ls | grep --color=no -o "$PPID[^[:space:]]*"'
26
27 # auto-log
28 #logfile $HOME/.screen/logs/screen_%H_%Y%m%d_%0C:%s_%n.log
29 #deflog on
30
31 # -------------------------------------------------------------------
32 # Terminal Emulation Settings
33 # -------------------------------------------------------------------
34
35 # allow 256 colors
36 attrcolor b ".I" # use bright colors for bold text
37 termcapinfo xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # tell screen how to set colors. AB = background, AF=foreground
38 defbce on # erase background with current bg color
39
40 # enable altscreen, and disable ti/te initializations to allow PuTTy scrollback.
41 # (http://www4.cs.fau.de/~jnweiger/screen-faq.html)
42 altscreen on
43 termcapinfo xterm* 'ti@:te@'
44
45 # xterm understands both im/ic and doesn't have a status line.
46 # Note: Do not specify im and ic in the real termcap/info file as
47 # some programs (e.g. vi) will not work anymore.
48 termcap xterm* 'hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l'
49 terminfo xterm* 'hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l'
50
51 # our xterm has colors! (rxvt, too)
52 termcap xterm* 'AF=\E[3%dm:AB=\E[4%dm'
53 terminfo xterm* 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
54
55 # this makes backspace sane on debian systems
56 termcapinfo xterm* 'bc@:bs@'
57
58 # 80/132 column switching must be enabled for ^AW to work
59 # change init sequence to not switch width
60 termcapinfo xterm* 'Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
61
62 # tell screen that xterm can switch to dark background and has function
63 # keys.
64 termcapinfo xterm* 'VR=\E[?5h:VN=\E[?5l'
65 termcapinfo xterm* 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
66 termcapinfo xterm* 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
67
68 # make the output buffer large for (fast) xterms.
69 termcapinfo xterm* 'OL=10000'
70 termcapinfo xterm* 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
71
72 # emulate part of the 'K' charset
73 termcapinfo xterm* 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
74
75 # -------------------------------------------------------------------
76 # Key Bindings
77 # -------------------------------------------------------------------
78
79 # remove some stupid / dangerous key bindings
80 bind k
81 bind ^K
82 bind \\
83 bind ^\
84
85 # easier windowlist
86 bind ' ' windowlist -b
87 # shift+0-9 to select screens 10-19
88 bind ')' select 10
89 bind '!' select 11
90 bind '@' select 12
91 bind '#' select 13
92 bind '$' select 14
93 bind '%' select 15
94 bind '^' select 16
95 bind '&' select 17
96 bind '*' select 18
97 bind '(' select 19
98
99 # -------------------------------------------------------------------
100 # Default Windows
101 # -------------------------------------------------------------------
102 screen -t sh 0
103 screen -t trkshd 1
104 screen -t trk 2
105 screen -t trkdev 3
106 screen -t fnd 4
107 screen -t rel 5
108 screen -t qacur 6
109 select 0