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