-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
118 lines (90 loc) · 3.59 KB
/
.screenrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Detach on hangup
autodetach on
# 15k lines of history should be enough for anyone.
defscrollback 15000
# How long a window waits for silence before alerting you.
silencewait 15 # default: 30
# Don't display the "logged in" flag
deflogin off
# Monitor all windows for activity
defmonitor on
activity ''
## Example auto-starts.
#source .screenwindows
##############################################################################
# BINDINGS
##############################################################################
# Toggle 'fullscreen' or not.
bind f eval "caption splitonly"
bind F eval "caption always"
bind _ eval "clear" "scrollback 0" "scrollback 15000"
# Ctrl left and right
bindkey ^[[1;5D prev
bindkey ^[[1;5C next
##############################################################################
# DISPLAY
##############################################################################
# Force terminal to 256-color.
#term screen-256color
attrcolor b ".I" # allow bold colors - necessary for some reason
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # tell screen how to set colors. AB = background, AF=foreground
## terminfo and termcap for nice 256 color terminal
## allow bold colors - necessary for some reason
attrcolor b ".i"
# Dim ends up underlined, disable dim
attrcolor d -d
# Status line semaphore cheat sheet:
# %{= ky} set color to yellow on black.
# %{= yk} set color to black on yellow.
# %{=r} reverse the color attrs
# %-Lw all window #s, titles, and flags before the current window.
# %n %t current window number and title.
# %+Lw all windows #s, titles, and flags after the current window.
# %-= pad remaining spaces.
# %M%d month and day, like MmmDD.
# %c current time, like HH:MM.
# %H hostname
caption always "%{= Wk} %-Lw%{= kB} %n: %{= kW}%t %{= Wk}%+Lw %-= %H %c"
hardstatus ignore
# Set selection (and now message) colours
sorendition WK
attrcolor b ".I" # allow bold colors - necessary for some reason
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
## tell screen how to set colors. ab = background, af=foreground
termcapinfo xterm|xterms|xs|xterm-color|xterm-256color 'co#256:ab=\e[48;5;%dm:af=\e[38;5;%dm'
# This makes sure the mouse works properly in vim (etc.).
termcapinfo linux|xterm|rxvt|xterm-color|xterm-256color ti@:te@:XT
# Make xterm scrollback work, by using normal buffer, not alternate.
termcapinfo xterm|xterms|xs|xterm-color|xterm-256color ti=\E7\E[?47l
## allow bold colors - necessary for some reason
attrcolor b ".i"
# Dim ends up underlined, disable dim
attrcolor d -d
# Erase background with current bg color
defbce "on"
# Toggle 'fullscreen' or not.
bind f eval "caption splitonly"
bind F eval "caption always"
# Make messages appear in reverse video (selection colours)
hardstatus off
##############################################################################
# BOOL VARIABLES
# Ignore case for searches in copy mode.
ignorecase on
# Suppress splash screen.
startup_message off
# Visual bell.
vbell off
# Remove application (e.g. vim) output from screen on exit.
altscreen on
##############################################################################
# PATH VARIABLES
# hardcopydir: The directory which contains all hardcopies.
hardcopydir $HOME/.screen
##############################################################################
# NUMBER VARIABLES
# 5k lines of history should be enough for anyone.
defscrollback 5000
# How long a window waits for silence before alerting you.
silencewait 15 # default: 30