screenrc

作者: Rex_Diego | 来源:发表于2017-04-24 19:53 被阅读0次
startup_message off
vbell off
altscreen on
hardstatus on
hardstatus alwayslastline
backtick 1 86400 86400 whoami
backtick 2 86400 86400 uname -m

#backtick 100 0 0 /tp914/zy/fanghuan_tmp/soft/screenrc/screen-stats.awk

hardstatus string "%{= kY}%1`%{+b G}@%{+b Y}%H%{-b G} (%2`) %-=%{G}%100` %{w}|%{-} %{Y}%Y%{-}.%{Y}%m%{-}.%{Y}%d%{-} %D %{Y}%C%{-}:%{Y}%s%{-} %a"

caption always
caption string "%-Lw%{= bw}%50>%n %t%{-}%+Lw%<"

####terminfo and termcap for nice 256 color terminal
#mousetrack on### allow bold colors - necessary for some reason
###attrcolor b ".I"
#### tell screen how to set colors. AB = background, AF=foreground
###termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm"
###termcapinfo xterm-color "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm"
#### erase background with current bg color
###defbce "on"
term "screen-256color"

shell /bin/bash
# Set GNU screen command entry character to C-]
#escape ^]^]
#escape ^Bb

# Two C-] = literal C-]
#escape ^]^]

defscrollback 2000
termcapinfo xterm* ti@:te@

#bindkey -k k2 screen
#bindkey -k k3 prev
#bindkey -k k4 next
#bindkey -k k5 copy
#bindkey -k k8 title
#bindkey -k k9 focus
#bind x
#bind s
#bind ^s
bind r source $HOME/.screenrc

bind j focus down
bind k focus up

bind t focus top
bind h focus left
bind b focus bottom

# keep running processes on detach
#autodetach on

bind s windowlist
# start windows at 1 instead of 0
bind c screen 1
bind ^c screen 1
bind 0 select 10
screen 1

# large scrollback buffer
defscrollback 5000

# on split screen, switch window focus by clicking
#mousetrack on

# refresh screen after closing a program
altscreen on

相关文章

网友评论

      本文标题:screenrc

      本文链接:https://www.haomeiwen.com/subject/usnqottx.html