-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.screenrc
190 lines (156 loc) · 5.82 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# $Id: screenrc,v 1.15 2003/10/08 11:39:03 zal Exp $
#
# /etc/screenrc
#
# This is the system wide screenrc.
#
# You can use this file to change the default behavior of screen system wide
# or copy it to ~/.screenrc and use it as a starting point for your own
# settings.
#
# Commands in this file are used to set options, bind screen functions to
# keys, redefine terminal capabilities, and to automatically establish one or
# more windows at the beginning of your screen session.
#
# This is not a comprehensive list of options, look at the screen manual for
# details on everything that you can put in this file.
#
# ------------------------------------------------------------------------------
# SCREEN SETTINGS
# ------------------------------------------------------------------------------
escape ^Oo
startup_message off
#nethack on
#defflow on # will force screen to process ^S/^Q
# deflogin on
autodetach on
# turn visual bell off
vbell off
vbell_msg " Wuff ---- Wuff!! "
# define a bigger scrollback, default is 100 lines
defscrollback 5000
#run everything in unicode, to allow display of international characters w/o problems
defutf8 on
maptimeout 10
# ------------------------------------------------------------------------------
# SCREEN KEYBINDINGS
# ------------------------------------------------------------------------------
# Remove some stupid / dangerous key bindings
bind ^k
#bind L
bind ^\
# Make them better
bind \\ quit
bind K kill
# bind I login on
# bind O login off
bind } history
bind j focus down
bind ^j focus down
bind k focus up
bind ^k focus up
bind t focus top
bind b focus bottom
# close current region
bind q remove
bind = resize +3
bind - resize -3
bind -c selectHighs 0 select 10 #these three commands are
bind -c selectHighs 1 select 11 #added to the command-class
bind -c selectHighs 2 select 12 #selectHighs
bind -c selectHighs 3 select 13
bind -c selectHighs 4 select 14
bind -c selectHighs 5 select 15
bind -c selectHighs 6 select 16
bind -c selectHighs 7 select 17
bind -c selectHighs 8 select 18
bind -c selectHighs 9 select 19
bind / command -c selectHighs #bind the hyphen to
#command-class selectHighs
# An example of a "screen scraper" which will launch urlview on the current
# screen window
#
#bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
# ------------------------------------------------------------------------------
# TERMINAL SETTINGS
# ------------------------------------------------------------------------------
# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 dl=5\E[M
# turn sending of screen messages to hardstatus off
hardstatus off
# Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
### the following configs try to turn 256 colors on in screen,
### but screen need to be compiled with "./configure --enable-colors256."
# 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"
# An alternative hardstatus to display a bar at the bottom listing the
# windownames and highlighting the current windowname in blue. (This is only
# enabled if there is no hardstatus setting for your terminal)
#
#hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
hardstatus alwayslastline "[%{+r M}%H%{-}]: %-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=%{m}|%l|%{-} %{r}%D %m/%d %c:%s%{-}"
# show caption only when there is more than one window
caption splitonly
# highlight caption when the window is active
caption string "%?%F%{.y.}%?%3n %t%? [%h]%?"
# set these terminals up to be 'optimal' instead of vt100
termcapinfo xterm*|linux*|rxvt*|Eterm* OP
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
# (This fixes the "Aborted because of window size change" konsole symptoms found
# in bug #134198)
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
# To get screen to add lines to xterm's scrollback buffer, uncomment the
# following termcapinfo line which tells xterm to use the normal screen buffer
# (which has scrollback), not the alternate screen buffer.
#
termcapinfo xterm|xterms|xs|rxvt ti@:te@
ignorecase on
#
# Run a screensaver if there's nothing happening for a while.
#
#idle 420 eval "screen cmatrix -f -o -u 10" "idle 0"
# use blankerprg will make cursor missing, don't know the reason yet
#blankerprg cmatrix -f -o -u 10
#idle 420
#
# Settings only work ver 4.00.3+
#
# bind + resize -v +3
# bind _ resize -v -3
# settings about layout
# layout new
# bind y command -c layout
# bind -c layout y layout next
# bind -c layout ' ' layout next
# #bind -c layout layout prev
# bind -c layout n layout next
# bind -c layout p layout prev
# bind -c layout 0 layout select 0
# bind -c layout 1 layout select 1
# bind -c layout 2 layout select 2
# bind -c layout 3 layout select 3
# bind -c layout 4 layout select 4
# bind -c layout 5 layout select 5
# bind -c layout 6 layout select 6
# bind -c layout 7 layout select 7
# bind -c layout 8 layout select 8
# bind -c layout 9 layout select 9
# bind -c layout \' layout select
# bind -c layout ? layout show
# bind -c layout i layout number
# bind -c layout c layout new
# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------
# Example of automatically running some programs in windows on screen startup.
#
# source local settings
# source ${HOME}/.screenrc.local
# maybe following line is smarter ;)
#source ${HOME}/.screenrc-${HOST}