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