screen

cd /usr/ports/sysutils/screen
make install

vi /usr/local/etc/screenrc
#啟動 screen 時不顯示訊息
startup_message off

#在畫面下方顯示視窗資訊
caption always “%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw %=%{mk}@%H %{yk}%D %{ck}%M%{wk} %{ck}%d %{gk}%c”

or

caption always “%{= wk} %{= KY} [%n]%t @ %H %{-} %= %{= KR} %l %{-} | %{= KG} %Y-%m-%d %{-} ”
hardstatus alwayslastline ” %-Lw%{= Bw}%n%f %t%{-}%+Lw %=| %0c:%s ”

#關閉錯誤警告
vbell on
vbell_msg ” Wuff —- Wuff!! ”

#login後自動開啟screen
if [ -z “$STY” ]; then

exec screen -dR

fi


Reference:

http://cha.homeip.net/blog/archives/2007/04/gnu_screen.html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.