Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

92 lines (67 sloc) 2.424 kB
# http://wiki.linuxquestions.org/wiki/Screen
# http://xtermin.us/code/screenconfig/
#-----------------------------------------------------------------------------
# appearance
#-----------------------------------------------------------------------------
# skip the copyright message
startup_message off
# tab & status bar
caption always "%{= dC}%H %=%-w%{= Cw}%n %t%{-}%+w %-= %c"
# do not name tabs by default
shelltitle ""
# Support alternate screens so that, for example, when you quit out of
# vi, the display is redrawn as it was before vi redrew the full screen.
altscreen on
# don't flash the screen
vbell off
defflow off
# enable Unicode support
defutf8 on
# support 256 color terminals
# http://push.cx/2008/256-color-xterms-in-ubuntu
# 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
# set TERM
term screen-256color-bce
#-----------------------------------------------------------------------------
# interaction
#-----------------------------------------------------------------------------
# prefix for all screen shortcuts
escape ^bb
# switch between tabs with Alt-Left/Right
bindkey "^[[1;3D" prev
bindkey "^[[1;3C" next
# access scrollback buffer with Alt-Up/Down
bindkey "^[[1;3A" copy
bindkey "^[[1;3B" paste .
# only allow Shift-K to close a tab
bind k
bind ^k
bind K kill
# enable mouse wheel and terminal scrollbar
termcapinfo rxvt ti@:te@
termcapinfo rxvt 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
#-----------------------------------------------------------------------------
# tabs
#-----------------------------------------------------------------------------
# start tabs in home directory
chdir
# length of scrollback buffer
defscrollback 9999
#-----------------------------------------------------------------------------
# connection
#-----------------------------------------------------------------------------
# detach on hangup - if my dial-up
# session fails, screen will simply
# detach and let me re-attach later.
autodetach on
# continue receiving output from tabs even
# if the terminal we are displaying on is
# not accepting new content (because the
# user paused it with SrollLock/Control-S)
nonblock on
Jump to Line
Something went wrong with that request. Please try again.