X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.screenrc;h=3644fdc7c55951ac59f6de5495d03ec5cc807ce2;hp=737f2fbf94a1a7d9d9428d3e04bdce688592a772;hb=9b2d4a12c4cbeea017e1abdd506bf9dcdc5b4910;hpb=6d8a23086b86877bece0f1d4a8221728b07ac97b diff --git a/.screenrc b/.screenrc index 737f2fb..3644fdc 100644 --- a/.screenrc +++ b/.screenrc @@ -1,5 +1,3 @@ -# $Id$ - # Use Control-P instead of Control-A for stuff. escape ^pp @@ -13,21 +11,22 @@ startup_message off # Up and down like Vim. bind j focus down bind k focus up +# 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 h hardstatus alwayslastline -bind H hardstatus alwaysignore -#bind h focus top -#bind l focus bottom +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' +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. @@ -51,10 +50,10 @@ 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. The active window has -# a blue marker at either end and the text is blue. Inactive windows have -# black text. All windows show the name of all windows with the current one -# highlighted in square brackets. +# 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