1 # Use Control-P instead of Control-A for stuff.
9 windowlist title "%{= wb}%{+r}[%H %Y-%m-%d %0c:%s]%{-r} windows%<%=%l"
10 windowlist string "%{+ .b}%{+ g}%3n%f%{+ w} %t"
12 ################################################################################
14 ################################################################################
15 # Up and down like Vim.
18 # Previous and next kinda like Vim.
23 # Close the current window.
25 # Fit window to screen.
29 # Don't accidentally send xoff.
31 # Set current window title.
33 # Show or hide the hardstatus line.
34 bind v hardstatus alwayslastline
35 bind V hardstatus alwaysignore
37 ################################################################################
39 ################################################################################
40 # How to set the foreground and background colours.
41 termcapinfo putty*|rxvt-unicode|xterm-* 'AB=\E[48;5;%dm:AF=\E[38;5;%dm'
42 # PuTTY needs help to set bold colours.
43 termcapinfo putty-256color 'C8'
44 # How to resize the window.
45 termcapinfo putty*|rxvt-unicode|xterm-* 'WS=\E[8;%d;%dt'
46 # How to set the hardstatus line (ie title bar). Even though we don't use it.
47 termcapinfo xterm* 'ts=\E]0;:fs=\007:ds=\E]0;\007'
48 # Allow PgUp/PgDn to work correctly.
49 termcapinfo * 'ti@:te@'
50 # Force hardstatus off so we can have the line on the screen and toggle it.
52 # Support 256 colours with background clear erase.
53 term screen-256color-bce
54 # Turn on background clear erase.
57 ################################################################################
59 ################################################################################
60 # Display hardstatus on the bottom of the screen instead of in the title bar.
62 # The string is white on blue text showing: hostname, current window, date.
63 hardstatus string "%{= BW}[%H %Y-%m-%d %0c:%s]%{= WB} screen %n: %t%<%=%l"
64 # Show a caption bar for every window even if there are no splits.
66 # Format a caption string depending on whether it is related to the active
67 # window or not (%?%Fxxx%:yyy%? shows xxx if the window is active and yyy
69 # The caption consists of a white background bar whose foreground colour
70 # depends on the window status. Active windows are in blue; inactive in black.
71 # The current window's settings are highlighted in reverse video with square
73 caption string "%?%F%{= wb}%:%{= wk}%?%-Lw%50>%?%F%{+r}%:%{= Kw}%?[%n%f %t]%{-}%+Lw%< %="
74 # %?%F%{= wb}%:%{= wk}%?
75 # Show everything in blue on white if the window is active or black on white
76 # if the window is inactive.
79 # Left-aligned window list up to but not including the active window.
81 # %?%F%{+r}%:%{= Kw}%?[%n%f%t]%{-}
82 # Show name, flags and title in bold reverse if the window is active.
83 # Otherwise show them in white on high intensity black, which turns out grey.
84 # Afterwards pop the colour stack so the following information is as before.
87 # All remaining window names.
90 # Truncate here, hack in a space to force the reverse video to flip off then