Top > Linux > screen

Linux/screen
HTML ConvertTime 0.005 sec.

.screenrc [2018.03.04] Edit

# Rev.01

#escape ^t^t
escape ^l^l

defscrollback 50000

shell -$SHELL

# Use Mouse
##: Add... 2013.03.12
#termcapinfo xterm XT
termcapinfo xterm* XT
termcapinfo screen* XT

# Status
#defhstatus "^En:^Et"
#defhstatus "screen: ^E (^Et)"
#defhstatus alwayslastline "^En:^Et / ^Ew"

# Status
#defhstatus alwayslastline "^En:^Et / ^Ew"
#hardstatus alwayslastline "%n:%t / %w"

defkanji UTF-8
defencoding UTF-8
encoding UTF-8 UTF-8

#caption always "%{= wb} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wk} [%l] %{=b wb}%y/%m/%d(%D) %{=b wm}%c"
#caption always "%{= wb} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wk} [%l] %{=b wb}%y/%m/%d %{=b wb}%c"
caption always "%{= wb} %-w%{= dr}%n %t%{-}%+w %= %{=b wk} [%l] %{=b wb}%y/%m/%d %{=b wb}%c"

# bind
bind a other
bind N colon 'number '
bind T colon 'title '

# Encoding key Setting
bind ^U encoding UTF-8
bind ^E encoding eucJP
bind ^S encoding SJIS
bind ^J encoding jis

# Easy SSH
#bind R colon "screen -t "
bind c colon "screen -t "
bind B colon "screen -t remote ssh remote"
bind P colon "^p"



###  (2010.02.20, 2010.08.01, 2011.05.07, 2013.03.12)
# Flow Control  (Default:auto)
defflow off

# Login (/etc/utmp)  (Default:on)
deflogin off

# Bell  (Default:off, & audible bell)
vbell on

# Term  (Default:screen)
#term xterm
##: Add... 2013.03.12
#term xterm-256color
term screen-256color    # CentOS 6.2

# Monitor  (Default:off)
defmonitor on

# Zombie
#zombie ^[

# Sample
#screen 5
#screen -t title ssh host

# Startup Mesage
startup_message off

# Log Mode  (Default:off)
#deflog on
# Log File
#logfile "/tmp/screen-%Y%m%d-%n.log"

##: Add...  2017.02.19
# Mouse Click
#  (コピーモードでのマウス選択、他。但し、カーソルが常時矢印になる)
#mousetrack on

##: Add...  2017.02.19
# Changes the name of logfile.
deflog on
#logfile 'screen/log/screenlog.%H.%Y%m%d-%02c:%s-%n.%t.log'
logfile '/tmp/screenlogs/screenlog.%H.%Y%m%d-%02c:%s-%n.%t.log'
logtstamp on
logtstamp string "\n-- SCREEN [%Y/%m/%d %02c:%s] %n:%t --\n"



##: Add...  2011.05.07, 2013.03.12
# At startup Screen, I do not resize.
termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
termcapinfo screen* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'