X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.screenrc;h=eeb849134aa656123c859787964915efa14d0c67;hp=df17c1d4a5349ce1ea548c4c7d6ac20be33739cc;hb=2845332a4fb9524ed5b060c416ed5443c2602eed;hpb=adbc1b54bc543bfbc62fddc1ab07956ecf6cc35f diff --git a/.screenrc b/.screenrc index df17c1d..eeb8491 100644 --- a/.screenrc +++ b/.screenrc @@ -6,9 +6,12 @@ vbell off startup_message off # Coloured windowlist. -windowlist title "%{= wb}%{+b}%{+r}[%H]%{-r}%{-b} current windows%=" +windowlist title "%{= wb}%{+r}[%H %Y-%m-%d %0c:%s]%{-r} windows%<%=%l" windowlist string "%{+ .b}%{+ g}%3n%f%{+ w} %t" +# Save more scrollback. +defscrollback 512 + ################################################################################ # Hotkeys. ################################################################################ @@ -39,6 +42,10 @@ bind V hardstatus alwaysignore ################################################################################ # How to set the foreground and background colours. termcapinfo putty*|rxvt-unicode|xterm-* 'AB=\E[48;5;%dm:AF=\E[38;5;%dm' +# PuTTY needs help to set bold colours. +termcapinfo putty-256color 'C8' +# How to resize the window. +termcapinfo putty*|rxvt-unicode|xterm-* 'WS=\E[8;%d;%dt' # 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. @@ -56,7 +63,7 @@ defbce on # 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" +hardstatus string "%{= BW}[%H %Y-%m-%d %0c:%s]%{= WB} screen %n: %t%<%=%l" # 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 @@ -66,7 +73,7 @@ caption always # 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%< %=" +caption string "%?%F%{= wb}%:%{= wk}%?%-Lw%50>%?%F%{+r}%:%{= Kw}%?[%n%f %t]%{-}%+Lw%< %=" # %?%F%{= wb}%:%{= wk}%? # Show everything in blue on white if the window is active or black on white # if the window is inactive. @@ -74,8 +81,10 @@ caption string "%?%F%{= wb}%:%{= wk}%?%-Lw%50>%{+b}%{+r}[%n%f %t]%{-r}%{-b}%+Lw% # %-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. +# %?%F%{+r}%:%{= Kw}%?[%n%f%t]%{-} +# Show name, flags and title in bold reverse if the window is active. +# Otherwise show them in white on high intensity black, which turns out grey. +# Afterwards pop the colour stack so the following information is as before. # # %+Lw # All remaining window names.