X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.screenrc;h=3644fdc7c55951ac59f6de5495d03ec5cc807ce2;hp=30b554efc82e4d4e24c4f749abf0384f11fb4934;hb=819bb88d5a014a23150b8fd609d194e883958674;hpb=cefe781d6afb1caa2614ae4e69560e0e210f9f62 diff --git a/.screenrc b/.screenrc index 30b554e..3644fdc 100644 --- a/.screenrc +++ b/.screenrc @@ -1,9 +1,73 @@ -# $Id$ +# Use Control-P instead of Control-A for stuff. escape ^pp + +# Turn off annoyances. vbell off startup_message off -caption splitonly "%?%F%{= gW}%:%{-}%?%-Lw%50>[%n%f %t]%+Lw%<" + +################################################################################ +# Hotkeys. +################################################################################ +# Up and down like Vim. bind j focus down bind k focus up -#bind h focus top -#bind l focus bottom +# Previous and next kinda like Vim. +bind h prev +bind l next +# Close the current window. +bind q remove +# Set current window title. +bind t title +# Show or hide the hardstatus line. +bind v hardstatus alwayslastline +bind V hardstatus alwaysignore + +################################################################################ +# Terminal settings. +################################################################################ +# How to set the foreground and background colours. +termcapinfo putty*|rxvt-unicode|xterm-* 'AB=\E[48;5;%dm:AF=\E[38;5;%dm' +# How to set the hardstatus line (ie title bar). Even though we don't use it. +termcapinfo xterm* 'ts=\E]0;:fs=\007:ds=\E]0;\007' +# Allow PgUp/PgDn to work correctly. +termcapinfo * 'ti@:te@' +# Force hardstatus off so we can have the line on the screen and toggle it. +termcapinfo * 'hs@' +# Support 256 colours with background clear erase. +term screen-256color-bce +# Turn on background clear erase. +defbce on + +################################################################################ +# Caption settings. +################################################################################ +# Display hardstatus on the bottom of the screen instead of in the title bar. +hardstatus off +# The string is white on blue text showing: hostname, current window, date. +hardstatus string "%{= BW}%H [screen %n: %t]%<%=%Y-%m-%d %0c:%s" +# Show a caption bar for every window even if there are no splits. +caption always +# Format a caption string depending on whether it is related to the active +# window or not (%?%Fxxx%:yyy%? shows xxx if the window is active and yyy +# otherwise). +# The caption consists of a white background bar whose foreground colour +# depends on the window status. Active windows are in blue; inactive in black. +# The current window's settings are highlighted in reverse video with square +# brackets. +caption string "%?%F%{= wb}%:%{= wk}%?%-Lw%50>%{+b}%{+r}[%n%f %t]%{-r}%{-b}%+Lw%< %=" +# %?%F%{= wb}%:%{= wk}%? +# Show everything in blue on white if the window is active or black on white +# if the window is inactive. +# +# %-Lw%50> +# Left-aligned window list up to but not including the active window. +# +# %{+b}%{+r}[%n%f%t]%{-r}%{+b} +# Show name, flags and title in bold reverse. +# +# %+Lw +# All remaining window names. +# +# %< %= +# Truncate here, hack in a space to force the reverse video to flip off then +# pad remaining text.