aboutsummaryrefslogtreecommitdiffstats
path: root/_screenrc
blob: 66c8e0588071562d38aabebb23a785a545f16a3c (plain)
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
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
# Use this line if you want instant charset mapping from gbk to
# unicode. Conflict with mutt's unicode setting.
#defencoding gbk

# hardstatus line
hardstatus alwayslastline
#left aligned
#hardstatus string "%{= R}[%{y}%l%{r}][ %{=b b}%-w%{=rb db}%>%n %t%{-}%+w%{-b}%< %=%{R}][%{G}%c %{M}%D %m-%d%{R}]"
#center aligned
hardstatus string "%{= B}:%{= b}: %{= r}[ %{=b G}%H%{= r} ] %= %{=b b}%-w%{=rb db}%>%n %t%{-}%+w %=%{= r}[ %{G}%c %{M}%D %m-%d %{r}] %{= b}:%{B}:"
#caption always "%{= mW} %= %H %="
#caption always "%{= gk}%-Lw%{= rW}%50> %n%f* %t %{-}%+Lw%< %= %{= Gk} %H %{= rW} %l %{= Gk} %0c:%s %d/%m %{-}"
#new version from vermaden
#hardstatus string '%{= M} %H%{= G} %l %= %{= w}%-w%{+b r}%n*%t%{-b r}%{w}%+w %= %{c}%d %D %{B}%c '
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
##    Some general options    ##

# Make the xterm scroller work in screen, also works
# with mouse scrollwheel(does not work...)
terminfo xterm*|rxvt ti@:te@
#allow bold
#attrcolor b ".I"
## erase background with current bg color
#defbce "on" 
#fix rxvt-unicode 256 color problem
terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# tell screen how to set colors. AB = background, AF=foreground
#terminfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
#dynamic title
terminfo xterm* 'XT:hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'

# Automatically detach on hangup, or the screen will keep eating your memory after the terminal emulator has been terminated.
autodetach on		# default: on

# Refresh the display when exiting programs like vim, nano, irssi and etc.
altscreen on

#define a large scrollback buffer
defscrollback 1000

# Set messages timeout to 5 second: 
msgwait 4
msgminwait 1
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
#version
# start message:
startup_message off	# default: on

# use audio bell
vbell off
vbell_msg "   Wuff  ----  Wuff!!  "

#nethack style messages
nethack on

#utf-8 handling
defutf8 on

attrcolor b ".I"

#use zshell as default shell
#shell zsh
shell /bin/zsh

# =-=-=-=-=-=-=-=-=-=-=Key bindings-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
# bind F1  to select 1
# bind F7  to detach screen session from this terminal
# bind F8  to kill current screen window.
# bind F9  to create a new screen
# bind F10 to rename current screen window
# bind F11 to move to previous window
# bind F12 to move to next window
#bindkey -k k1 select 1
#bindkey -k k7 detach
#bindkey -k k8 kill
#bindkey -k k9 screen
#bindkey -k k; title
bindkey -k F1 prev
bindkey -k F2 next
# =-=-=-=-=-=-=-=-=-=-=-Sessions=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
screen
screen