User:Hannes Röst/.screenrc

From Wikibooks, open books for an open world
Jump to navigation Jump to search
#Window tabs, second to last line
caption always "%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%? %= %{= kw}%110`%109`%111`"

# Status string, last line
# shows messages from screen itself
hardstatus string '%99`%{= kw} %100`%112`%= %102`%101`%114`%115`%108`%113`%119`%117`%118`%116`%106`%104`%103`%105`%107`%Y-%m-%d %0c:%s'

defscrollback 30000 # Use a 30000-line scrollback buffer

# From http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html
# Q: My xterm scrollbar does not work with screen.
# A: The problem is that xterm will not allow scrolling if the alternate text
# buffer is selected. The standard definitions of the termcap initialize
# capabilities ti and te switch to and from the alternate text buffer. (The
# scrollbar also does not work when you start e.g. ‘vi’). You can tell screen
# not to use these initialisations by adding the line “termcapinfo xterm
# ti@:te@” to your ~/.screenrc file.
# From
# http://www.mattcutts.com/blog/screen-power-tips-screenrc/
termcapinfo xterm ti@:te@

#
#
#  Toggle 'fullscreen' or not.
#
bind f eval "caption splitonly" "hardstatus ignore"
bind F eval "caption always"    "hardstatus alwayslastline"

#set bindings so we can easily access windows 10-18 
bind ) select 10
bind ! select 11
bind @ select 12
bind \# select 13
bind \$ select 14
bind % select 15
bind \^ select 16
bind & select 17
bind * select 18
bind ( select 19