Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
189 lines (155 sloc) 5.75 KB
# $Id: screenrc,v 1.15 2003/10/08 11:39:03 zal Exp $
#
# /etc/screenrc
#
# This is the system wide screenrc.
#
# You can use this file to change the default behavior of screen system wide
# or copy it to ~/.screenrc and use it as a starting point for your own
# settings.
#
# Commands in this file are used to set options, bind screen functions to
# keys, redefine terminal capabilities, and to automatically establish one or
# more windows at the beginning of your screen session.
#
# This is not a comprehensive list of options, look at the screen manual for
# details on everything that you can put in this file.
#
# ------------------------------------------------------------------------------
# SCREEN SETTINGS
# ------------------------------------------------------------------------------
escape ^Oo
startup_message off
#nethack on
#defflow on # will force screen to process ^S/^Q
deflogin on
autodetach on
# turn visual bell off
vbell off
vbell_msg " Wuff ---- Wuff!! "
# define a bigger scrollback, default is 100 lines
defscrollback 1024
#run everything in unicode, to allow display of international characters w/o problems
defutf8 on
# ------------------------------------------------------------------------------
# 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
bind j focus down
bind ^j focus down
bind k focus up
bind ^k focus up
bind t focus top
bind b focus bottom
# close current region
bind q remove
bind = resize +3
bind - resize -3
bind -c selectHighs 0 select 10 #these three commands are
bind -c selectHighs 1 select 11 #added to the command-class
bind -c selectHighs 2 select 12 #selectHighs
bind -c selectHighs 3 select 13
bind -c selectHighs 4 select 14
bind -c selectHighs 5 select 15
bind -c selectHighs 6 select 16
bind -c selectHighs 7 select 17
bind -c selectHighs 8 select 18
bind -c selectHighs 9 select 19
bind / command -c selectHighs #bind the hyphen to
#command-class selectHighs
# 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
# Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
### the following configs try to turn 256 colors on in screen,
### but screen need to be compiled with "./configure --enable-colors256."
# terminfo and termcap for nice 256 color terminal
# 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'
# erase background with current bg color
defbce "on"
# 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%<"
hardstatus alwayslastline "[%{+r M}%H%{-}]: %-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=%{m}|%l|%{-} %{r}%D %m/%d %c:%s%{-}"
# show caption only when there is more than one window
caption splitonly
# highlight caption when the window is active
caption string "%?%F%{.y.}%?%3n %t%? [%h]%?"
# 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@
ignorecase on
#
# Run a screensaver if there's nothing happening for a while.
#
#idle 420 eval "screen cmatrix -f -o -u 10" "idle 0"
# use blankerprg will make cursor missing, don't know the reason yet
#blankerprg cmatrix -f -o -u 10
#idle 420
#
# Settings only work ver 4.00.3+
#
bind + resize -v +3
bind _ resize -v -3
# settings about layout
layout new
bind y command -c layout
bind -c layout y layout next
bind -c layout ' ' layout next
#bind -c layout  layout prev
bind -c layout n layout next
bind -c layout p layout prev
bind -c layout 0 layout select 0
bind -c layout 1 layout select 1
bind -c layout 2 layout select 2
bind -c layout 3 layout select 3
bind -c layout 4 layout select 4
bind -c layout 5 layout select 5
bind -c layout 6 layout select 6
bind -c layout 7 layout select 7
bind -c layout 8 layout select 8
bind -c layout 9 layout select 9
bind -c layout \' layout select
bind -c layout ? layout show
bind -c layout i layout number
bind -c layout c layout new
# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------
# Example of automatically running some programs in windows on screen startup.
#
# source local settings
source ${HOME}/.screenrc.local
# maybe following line is smarter ;)
#source ${HOME}/.screenrc-${HOST}
Something went wrong with that request. Please try again.