]> git.phdru.name Git - dotfiles.git/blob - .screenrc
.fvwmrc: Enlarge fonts for Qt-based `audacious`
[dotfiles.git] / .screenrc
1 # Allow virtual alternate screen
2 altscreen on
3
4 #autodetach off
5
6 # don't display the copyright page
7 startup_message off
8 #nethack on
9
10 #defflow on # will force screen to process ^S/^Q
11
12 # make the shell in every window a login shell
13 deflogin on
14 shell -$SHELL
15
16 # For this to work PS1 prompt must include empty "<esc>k<esc>\" sequence
17 # and ends with "$ ".
18 #shelltitle "\$ |$SHELL"
19 #bind R screen -t '# |root:' sudo su -
20
21 # define a bigger scrollback, default is 100 lines
22 defscrollback 1024
23
24 # emulate .logout message
25 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
26
27 # ------------------------------------------------------------------------------
28 # SCREEN KEYBINDINGS
29 # ------------------------------------------------------------------------------
30
31 # Remove some stupid / dangerous key bindings
32 bind ^k
33 #bind L
34 bind ^\
35
36 # An example of a "screen scraper" which will launch urlview on the current
37 # screen window
38 #
39 #bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
40
41 # on backspace send ^H
42 #bindkey -d -k kb stuff "\010"
43
44 # Remap keypad
45 #KP_Home
46 bindkey \033Ow stuff \033[1~
47 #KP_Up
48 bindkey \033Ox stuff \033OA
49 #KP_PgUp
50 bindkey \033Oy stuff \033[5~
51 #KP_Left
52 bindkey \033Ot stuff \033OD
53 #KP_Right
54 bindkey \033Ov stuff \033OC
55 #KP_End
56 bindkey \033Oq stuff \033[4~
57 #KP_Down
58 bindkey \033Or stuff \033OB
59 #KP_PgDn
60 bindkey \033Os stuff \033[6~
61 #KP_minus
62 bindkey \033Om stuff -
63 #KP_plus
64 bindkey \033Ok stuff +
65 #KP_slash
66 bindkey \033Oo stuff /
67 #KP_asterisk
68 bindkey \033Oj stuff *
69 #KP_Enter
70 bindkey \033OM stuff \015
71
72 # ------------------------------------------------------------------------------
73 # TERMINAL SETTINGS
74 # ------------------------------------------------------------------------------
75
76 # The vt100 description does not mention "dl". *sigh*
77 termcapinfo vt100 dl=5\E[M
78
79 # turn sending of screen messages to hardstatus off
80 hardstatus off
81 # Set the hardstatus prop on gui terms to set the titlebar/icon title
82 termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
83 # use this for the hard status string
84 #hardstatus string "%h%? users: %u%?"
85
86 # An alternative hardstatus to display a bar at the bottom listing the
87 # windownames and highlighting the current windowname in blue. (This is only
88 # enabled if there is no hardstatus setting for your terminal)
89 #
90 #hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
91
92 # status line at the bottom of terminal
93 # display window number, flags and title
94 # for inactive windows - black on yellow (brown)
95 # for active window - black on green
96 hardstatus alwayslastline
97 hardstatus string "%{= yk}%-w%{= gk}%n%f %t%{-}%+w %-="
98
99 # set these terminals up to be 'optimal' instead of vt100
100 termcapinfo xterm*|rxvt*|linux*|Eterm* OP
101
102 # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
103 # (This fixes the "Aborted because of window size change" konsole symptoms found
104 #  in bug #134198)
105 termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
106
107 # To get screen to add lines to xterm's scrollback buffer, uncomment the
108 # following termcapinfo line which tells xterm to use the normal screen buffer
109 # (which has scrollback), not the alternate screen buffer.
110 #
111 #termcapinfo xterm*|rxvt* ti@:te@
112
113 # Use the alternate screen of the xterm-like terminal
114 # https://unix.stackexchange.com/a/261939
115 #termcapinfo xterm* 'ti=\E[?1049h:te=\E[?1049l'
116 #termcapinfo rxvt* 'ti=\E7\E[?47h:te=\E[2J\E[?47l\E8'
117
118 # Do not use the alternate screen at all
119 # run `tput smcup; screen; tput rmcup`
120 termcapinfo xterm*|rxvt* 'ti=:te='
121
122 # Enable non-blocking mode to better cope with flaky ssh connections.
123 defnonblock 5