0
使用linux屏幕時,vi編輯器會覆蓋所有控制檯信息。我期望vi打開文件作爲一個單獨的窗口和退出時,它必須返回到控制檯。vi編輯器覆蓋控制檯命令歷史記錄
我.screenrc是,
################
#
# default windows
#
screen -t screen1 1
screen -t screen2 2
screen -t screen3 3
screen -t screen4 4
screen 1
# caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
# hardstatus alwaysignore
# hardstatus alwayslastline "%Lw"
#hardstatus string "[screen %n]:%h"
hardstatus on
hardstatus alwayslastline
hardstatus string '%{= wk}%-w %{bw} [ %n %t ] %{Kd}%+w %-= %{KY} | %D %M %d %Y% | %C %A %{-} '
#caption always
#caption string "%{= bW}%3n %{y}%t %{-}%= %{m}%H%?%{-} -- %{c}%l%?%{-} -- %D %M %d %{y}%c"
#term screen-256color
attrcolor b ".I" # allow bold colors - necessary for some reason
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # tell screen how to set colors. AB = background, AF=foreground
defbce on # use current bg color for erased chars
vbell off
難道沒有辦法避免這種行爲嗎? –
我不認爲你可以覆蓋默認屏幕bahaviour。然而,爲了模擬你需要的,打開第二個終端標籤並在那裏做一個'tail -f screenlog.0',它會根據你需要的日誌更新爲你提供日誌。試試吧 – gaganshera
我試過了,覺得不舒服。有沒有其他的應用程序可以使用類似的功能進行屏幕顯示? –