2006-10-13

linux screen

用linux怎么能不用screen。

可以有很多好工具,但很难有这么好的工具,贴一下我的配置:

escape ^pp # suggested binding for emacs users

vbell on # default: off
vbell_msg " Invalid key typing! " # default: "Wuff,Wuff!!"

# Automatically detach on hangup.
autodetach on # default: on

# Don't display the copyright page
startup_message off # default: on

# Affects the copying of text regions
crlf off # default: off

# Change default scrollback value for new windows
defscrollback 5000 # default: 100

# shell: Default process started in screen's windows.
shell -$SHELL

# shelltitle '$ |bash'
shelltitle ''

# emulate .logout message
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."

caption always "%{= Kw}[%h] %=%LM %Ld %LD %c"

hardstatus alwayslastline
hardstatus string '%{= kK}%-Lw%50>%{= Kw}%n%f* %t%{= kK}%+Lw%<'

1 条评论:

Ruini 说...

调整过后的配置文件,使得statusline和caption配合得更好看:

escape ^pp # suggested binding for emacs users


vbell on
vbell_msg " Invalid key typing! "

# Automatically detach on hangup.
autodetach on

# Don't display the copyright page
startup_message off

# Affects the copying of text regions
crlf off # default: off

# Change default scrollback value for new windows
defscrollback 5000

# shell: Default process started in screen's windows.
shell -$SHELL
shelltitle ''

# caption for each shell
caption always "%{=rs}[%h] %=%LM %Ld %LD %c%{-}"

# status line
hardstatus alwayslastline
hardstatus string '%{=.}%-Lw%{=rs}%n%f*%t%{-}%+Lw'