Screen不闪的配置:

caption always "%?%F%{-b 4w}%?%L=%-Lw%45>%{-b w4}%n%f* %t%{-}%+Lw%-0<"

上面这些字符的含义见:http://www.gnu.org/software/screen/manual/html_node/String-Escapes.html


0 bash  1 dev  2* sqltest  3 rs  4 ms  5 ms2  6 obconnector  7 pgsql  8 cClient  9- mysql 


快速建立多个窗口

screen -fn -t bash -L 0


样例配置:


escape ``

# hard status and tabs for windows
#hardstatus on
#hardstatus alwayslastline
#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y}"
defmonitor on
activity 'Activity in window %'

#hardstatus lastline "%c %t %n %w"
#startup_message off
#vbell off
#defscrollback 512

#caption always "%?%F%{-b 4w}%?%L=%-Lw%45>%{-b w4}%n%f* %t%{-}%+Lw%-0<"
caption always "%{.b}%-w%{.W}%n %t%{-}%+w"

#deflogin off
# default starting dir is ~
#chdir

# create default screens
screen -fn -t bash -L 0
# screen -fn -t s171 -L 0 ssh 10.232.36.171

# switch to window 0
select 0

vbell off




使用方法:配置导入到~/.screenrc中

>screen -dR dev

创建新窗口:输入`,再输入c