From: Iain Patterson Date: Thu, 23 Jul 2009 16:54:45 +0000 (+0100) Subject: Consistent screen caption on different terminals. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=38e73bd0f8a6b326fb47e4cba06587b03e561a07;p=profile.git Consistent screen caption on different terminals. The inactive caption line didn't look the same in xterm and PuTTY as it did in rxvt-unicode. Instead of using bold and reverse for the black on white text we now explicitly set white on high-intensity black. The result unchanged in rxvt-unicode and now looks the same in other terminals. PuTTY needs an explicit C8 termcapinfo to use bold for high-intensity. --- diff --git a/.screenrc b/.screenrc index 9624f7c..a0ab0af 100644 --- a/.screenrc +++ b/.screenrc @@ -39,6 +39,8 @@ 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. @@ -68,7 +70,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. @@ -76,8 +78,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.