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
|
# Set default encoding using utf8 defutf8 on ## 解決中文亂碼,這個(gè)要按需配置 defencoding utf8 encoding utf8 utf8 #兼容shell 使得.bashrc .profile /etc/profile等里面的別名等設(shè)置生效 shell -$SHELL #set the startup message startup_message off #term linux ## 解決無(wú)法滾動(dòng) termcapinfo xterm|xterms|xs ti@:te=\E[2J # 屏幕緩沖區(qū)行數(shù) defscrollback 10000 # 下標(biāo)簽設(shè)置 caption always "%{=u .G} %-w%<%{=ub .y}%n %t%{=u .G}%+w " hardstatus alwaysignore hardstatus alwayslastline "%{= .K} [%l]%<%=%{= .W}@%H %=%{= .y} %Y/%m/%d%{= .m} %C %A" #關(guān)閉閃屏 vbell off #Keboard binding bindkey ^[d prev bindkey ^[f next # bind Alt`~= to screen0~ 12 bindkey "^[`" select 0 bindkey "^[1" select 1 bindkey "^[2" select 2 bindkey "^[3" select 3 bindkey "^[4" select 4 bindkey "^[5" select 5 bindkey "^[6" select 6 bindkey "^[7" select 7 bindkey "^[8" select 8 bindkey "^[9" select 9 bindkey "^[0" select 10 bindkey "^[-" select 11 bindkey "^[=" select 12 # bind F5 to create a new screen bindkey ^[n screen # bind F6 to detach screen session (to background) bindkey -k k6 detach # bind F7 to kill current screen window bindkey -k k7 kill # bind F8 to rename current screen window bindkey -k k8 title |
啟動(dòng)screen:screen
列出screen: screen -ls
恢復(fù)screen:screen -rU
-U Run screen in UTF-8 mode,加上-U可以保證恢復(fù)時(shí)不出現(xiàn)中文亂碼
感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!
原文鏈接:http://kenby.iteye.com/blog/2100645