-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenrc
55 lines (46 loc) · 1.83 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
startup_message off
defscrollback 10000
# Set key bindings for moving between regions (splits)
# For killing a window, now use Ctrl-A, K (upper case K)
bind h focus left
bind j focus down
bind k focus up
bind l focus right
bind t focus top
bind b focus bottom
# Enable switching between regions using mouse
mousetrack on
# Allow bold colors
attrcolor b ".I"
# Set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm:ti@:te@'
# Use current bg color for erased chars
defbce on
# Unbind the lock keystroke of C-x x
bind x
bind ^x
hardstatus on
hardstatus alwayslastline
hardstatus string "%{= bW}%-Lw%{= rW}%n %t%{-}%+Lw %=%{.Y}%S%{.W}@%{.G}%H"
#
# http://www.gnu.org/software/screen/manual/html_node/String-Escapes.html
#
# %{= bW} : set colors to bright white (W) on blue (b) and keep current text styles (=)
# %-Lw : list windows before current window (L [optional] = "include flags")
# %{= rW} : for current window, set colors to bright white (W) on red (r) and keep current text styles (=)
# %n : window number
# %t : window title
# %{-} : restore colors to previous colors / undo last color change
# %-Lw : list windows after current window (L [optional] = "include flags")
# %= : expand to fill all space (used here to make remaining content flush right)
# %{.Y} : set text foreground to bright yellow (Y) and leave the background color unchanged (.)
# %S : Screen session name
# %{.G} : set text foreground to bright green (G) and leave the background color unchanged (.)
# %{.W} : set text foreground to bright white (W) and leave the background color unchanged (.)
# @ : '@'
# %H : hostname
#
# Turn off visual bell - and thereby annoying screen flashes
vbell off
# Set escape key to ` (backtick) and meta key to ` (backtick)
# escape ``