83 lines
2.5 KiB
Plaintext
83 lines
2.5 KiB
Plaintext
|
|
startup_message off
|
|
|
|
#defflow on # will force screen to process ^S/^Q
|
|
deflogin on
|
|
#autodetach off
|
|
|
|
vbell off
|
|
defscrollback 5000
|
|
|
|
# 256 colors
|
|
attrcolor b ".I"
|
|
termcapinfo xterm*|linux*|rxvt*|Eterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
|
|
defbce on
|
|
|
|
altscreen on
|
|
source /home/hendrik/.bashrc
|
|
# set shell
|
|
shell -$SHELL
|
|
#default vindows
|
|
screen -t SHELL1 1 bash
|
|
select 0
|
|
bind c screen 1 #window numbering starts at 1 not 0
|
|
bind 0 select 10
|
|
|
|
|
|
#shell='/root/.bashhenrc'
|
|
# ------------------------------------------------------------------------------
|
|
# SCREEN KEYBINDINGS
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Remove some stupid / dangerous key bindings
|
|
bind ^k
|
|
#bind L
|
|
bind ^\
|
|
# Make them better
|
|
bind \\ quit
|
|
bind K kill
|
|
bind I login on
|
|
bind O login off
|
|
bind } history
|
|
|
|
# make screen list keybinding less stupid -> now C-a space
|
|
bind ' ' windowlist -b
|
|
|
|
# An example of a "screen scraper" which will launch urlview on the current
|
|
# screen window
|
|
#
|
|
#bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# TERMINAL SETTINGS
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# The vt100 description does not mention "dl". *sigh*
|
|
termcapinfo vt100 dl=5\E[M
|
|
|
|
# turn sending of screen messages to hardstatus off
|
|
hardstatus off
|
|
hardstatus alwayslastline
|
|
#hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
|
|
backtick 0 30 30 sh -c 'screen -ls | grep --color=no -o "$PPID[^[:space:]]*"' #backtick command: name of current screen session
|
|
#hardstatus string '%{= Kg}[ %{W}%`%?%{-} ][%= %{W}%-w%{Yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][ %{W}%H%?%{-} ]' #without time
|
|
hardstatus string '%{= KY} %?%`%? %=%{W}%-w%{Gk} %n %t %{-}%+w%{-} %= %c %Y-%m-%d%{-}'
|
|
|
|
# set these terminals up to be 'optimal' instead of vt100
|
|
termcapinfo xterm*|linux*|rxvt*|Eterm* OP
|
|
|
|
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
|
|
# (This fixes the "Aborted because of window size change" konsole symptoms found
|
|
# in bug #134198)
|
|
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
|
|
|
|
# To get screen to add lines to xterm's scrollback buffer, uncomment the
|
|
# following termcapinfo line which tells xterm to use the normal screen buffer
|
|
# (which has scrollback), not the alternate screen buffer.
|
|
#
|
|
#termcapinfo xterm|xterms|xs|rxvt ti@:te@
|
|
|
|
# Enable non-blocking mode to better cope with flaky ssh connections.
|
|
defnonblock 5
|
|
|