-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.screenrc
65 lines (50 loc) · 1.64 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
# Longer scroll history
defscrollback 32768
# No annoying window flashes
vbell off
bell_msg ""
# No flow control when you accidentally press C-s
defflow off
# Use C-b as escape key instead of C-a
escape ^oo
# No "New screen..." message at startup
startup_message off
# But if we did show one, make it nice
caption always '%-w%{+b}%n %t%{-b}%+w'
# Log sessions into a consistent place when logging is enabled
# Note that you have to mkdir -p $HOME/history/screen/
logfile $HOME/history/screen/screenlog-%Y%m%d-%n-%H
# Case insensitive searches in copy mode
ignorecase on
# Allow terminal scrolling
# It's not perfect (gets messed up when you switch screen windows) but it's
# faster than going into copy mode all the time
#termcapinfo xterm* ti@:te@
# 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 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
# set TERM
term xterm-256color
# Switch screens with Ctrl-PageUp/PageDown
bindkey ^[[5;5~ prev
bindkey ^[[6;5~ next
# Scroll up and down with Shift-PageUp/PageDown
bindkey "^[[5;2~" eval "copy" "stuff ^u"
bindkey -m "^[[5;2~" stuff ^u
bindkey -m "^[[6;2~" stuff ^d
# Scroll up
bindkey -d "^[[5S" eval copy "stuff 5\025"
bindkey -m "^[[5S" stuff 5\025
# Scroll down
bindkey -d "^[[5T" eval copy "stuff 5\004"
bindkey -m "^[[5T" stuff 5\004
# Scroll up more
bindkey -d "^[[25S" eval copy "stuff \025"
bindkey -m "^[[25S" stuff \025
# Scroll down more
bindkey -d "^[[25T" eval copy "stuff \004"
bindkey -m "^[[25T" stuff \004