-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscreenrc
executable file
·53 lines (38 loc) · 1.14 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
# Disable the startup message
startup_message off
# disable screen flash bells
vbell off
# detach on hangup
autodetach on
# Clear text for 'visual' programs on exit
altscreen on
# Don't block command output if the terminal stops responding
# (like if the ssh connection times out for example).
nonblock on
# 256 color term
term screen-256color
# use the login shell
shell $SHELL
# Set a large scrollback buffer
defscrollback 32000
# Always start `screen` with UTF-8 enabled (`screen -U`)
defutf8 on
# 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*|gnome* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
# Enable mouse scrolling and scroll bar history scrolling
termcapinfo xterm* ti@:te@
hardstatus string ""
#hardstatus alwayslastline
#hardstatus string "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= [$h] %C%a "
# remap the escape key
escape ``
defescape ``
# Bind F7 and F8 to previous and next screen window
bindkey -k k7 prev
bindkey -k k8 next
# open a new shell with `n
bind n screen
# rename screen window with `r
bind r title