Chinaunix首页 | 论坛 | 博客
  • 博客访问: 102772
  • 博文数量: 30
  • 博客积分: 305
  • 博客等级: 二等列兵
  • 技术积分: 320
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-09 12:31
文章分类

全部博文(30)

文章存档

2014年(3)

2013年(16)

2012年(11)

我的朋友

分类: 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 关闭终端之后重新打开

阅读(3246) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~