分类: LINUX
2013-01-15 16:26:11
1. 在~/目录下面配置 .screenrc文件,文件的内容:
#se the startup message
startup_message off
term linux
##use ` as the Global Key
## escape ``
##set a biger buffer
defscrollback 4096
#设置状态栏
hardstatus alwayslastline
shelltitle "$|bash"
caption always "%?%F%{-b 4w}%?%L=%-Lw%45>%{-b w4}%n%f* %t%{-}%+Lw%-0<"
##shutdown the noise
vbell off
## w to show the window list
bind w windowlist -b
bind ^w windowlist -b
##initial apps to run
screen
select 0
#进行快捷键的绑定
bindkey -k k1 title
bindkey -k k2 command
bindkey -k k3 prev
bindkey -k k4 next
#bindkey -k k6 windowslist -m
#bindkey -k k7 windowslist -b
attrcolor u "-u B"
autodetach on
2. 运行screen
3. screen -ls 查看
4. screen -rd 关闭终端之后重新打开