From: Oleg Broytman Date: Tue, 24 Jul 2018 21:41:54 +0000 (+0300) Subject: .screenrc: Update from Debian system /etc/screenrc X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ac0da9d2010e35afeff0500e395e4efa6abd01df;p=dotfiles.git .screenrc: Update from Debian system /etc/screenrc --- diff --git a/.screenrc b/.screenrc index bd1e01c..4580d72 100644 --- a/.screenrc +++ b/.screenrc @@ -1,57 +1,81 @@ # Allow virtual alternate screen altscreen on -# detach on hangup -autodetach on +#autodetach off -# status line at the bottom of terminal -# display numbers and titles: -# for inactive windows - black on cyan -# for active window - white on blue -hardstatus alwayslastline -hardstatus string "%{= ck}%-w%{= bw}%n %t%{-}%+w %-=" - -# set every new windows hardstatus line to somenthing descriptive -# defhstatus "screen: ^E (^Et)" +# don't display the copyright page +startup_message off +#nethack on -# Increase scroll buffer -defscrollback 1000 - -# emulate .logout message -pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended." +#defflow on # will force screen to process ^S/^Q # make the shell in every window a login shell deflogin on shell -$SHELL -# don't display the copyright page -startup_message off - -################ -# -# xterm tweaks -# +# define a bigger scrollback, default is 100 lines +defscrollback 1024 -################ -# -# other terminals -# +# emulate .logout message +pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended." -################ -# -# keybindings -# +# ------------------------------------------------------------------------------ +# SCREEN KEYBINDINGS +# ------------------------------------------------------------------------------ -# remove some stupid / dangerous key bindings -bind h -bind ^h -bind k +# Remove some stupid / dangerous key bindings bind ^k -bind z -bind ^z -bind . -bind \\ +#bind L bind ^\ +# 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" + # on backspace send ^H #bindkey -d -k kb stuff "\010" + +# ------------------------------------------------------------------------------ +# 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 +# Set the hardstatus prop on gui terms to set the titlebar/icon title +termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007 +# use this for the hard status string +#hardstatus string "%h%? users: %u%?" + +# An alternative hardstatus to display a bar at the bottom listing the +# windownames and highlighting the current windowname in blue. (This is only +# enabled if there is no hardstatus setting for your terminal) +# +#hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" + +# status line at the bottom of terminal +# display numbers and titles: +# for inactive windows - black on cyan +# for active window - white on blue +hardstatus alwayslastline +hardstatus string "%{= ck}%-w%{= bw}%n %t%{-}%+w %-=" + +# 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