Screen fixes.
[profile.git] / .screenrc
1 # Use Control-P instead of Control-A for stuff.
2 escape ^pp
3
4 # Turn off annoyances.
5 vbell off
6 startup_message off
7
8 ################################################################################
9 # Hotkeys.
10 ################################################################################
11 # Up and down like Vim.
12 bind j focus down
13 bind k focus up
14 # Previous and next kinda like Vim.
15 bind h prev
16 bind l next
17 # Close the current window.
18 bind q remove
19 # Don't accidentally send xoff.
20 bind s
21 # Set current window title.
22 bind t title
23 # Show or hide the hardstatus line.
24 bind v hardstatus alwayslastline
25 bind V hardstatus alwaysignore
26
27 ################################################################################
28 # Terminal settings.
29 ################################################################################
30 # How to set the foreground and background colours.
31 termcapinfo putty*|rxvt-unicode|xterm-* 'AB=\E[48;5;%dm:AF=\E[38;5;%dm'
32 # How to set the hardstatus line (ie title bar).  Even though we don't use it.
33 termcapinfo xterm* 'ts=\E]0;:fs=\007:ds=\E]0;\007'
34 # Allow PgUp/PgDn to work correctly.
35 termcapinfo * 'ti@:te@'
36 # Force hardstatus off so we can have the line on the screen and toggle it.
37 termcapinfo * 'hs@'
38 # Support 256 colours with background clear erase.
39 term screen-256color-bce
40 # Turn on background clear erase.
41 defbce on
42
43 ################################################################################
44 # Caption settings.
45 ################################################################################
46 # Display hardstatus on the bottom of the screen instead of in the title bar.
47 hardstatus off
48 # The string is white on blue text showing: hostname, current window, date.
49 hardstatus string "%{= BW}%H [screen %n: %t]%<%=%Y-%m-%d %0c:%s"
50 # Show a caption bar for every window even if there are no splits.
51 caption always
52 # Format a caption string depending on whether it is related to the active 
53 # window or not (%?%Fxxx%:yyy%? shows xxx if the window is active and yyy 
54 # otherwise).
55 # The caption consists of a white background bar whose foreground colour 
56 # depends on the window status.  Active windows are in blue; inactive in black.
57 # The current window's settings are highlighted in reverse video with square
58 # brackets.
59 caption string "%?%F%{= wb}%:%{= wk}%?%-Lw%50>%{+b}%{+r}[%n%f %t]%{-r}%{-b}%+Lw%< %="
60 # %?%F%{= wb}%:%{= wk}%?
61 # Show everything in blue on white if the window is active or black on white
62 # if the window is inactive.
63 #
64 # %-Lw%50>
65 # Left-aligned window list up to but not including the active window.
66 #
67 # %{+b}%{+r}[%n%f%t]%{-r}%{+b}
68 # Show name, flags and title in bold reverse.
69 #
70 # %+Lw
71 # All remaining window names.
72 #
73 # %< %=
74 # Truncate here, hack in a space to force the reverse video to flip off then 
75 # pad remaining text.