]> git.phdru.name Git - dotfiles.git/blob - .screenrc
.fvwmrc: Start PulseAudio
[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 # define a bigger scrollback, default is 100 lines
17 defscrollback 1024
18
19 # emulate .logout message
20 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
21
22 # ------------------------------------------------------------------------------
23 # SCREEN KEYBINDINGS
24 # ------------------------------------------------------------------------------
25
26 # Remove some stupid / dangerous key bindings
27 bind ^k
28 #bind L
29 bind ^\
30
31 # An example of a "screen scraper" which will launch urlview on the current
32 # screen window
33 #
34 #bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
35
36 # on backspace send ^H
37 #bindkey -d -k kb stuff "\010"
38
39 # ------------------------------------------------------------------------------
40 # TERMINAL SETTINGS
41 # ------------------------------------------------------------------------------
42
43 # The vt100 description does not mention "dl". *sigh*
44 termcapinfo vt100 dl=5\E[M
45
46 # turn sending of screen messages to hardstatus off
47 hardstatus off
48 # Set the hardstatus prop on gui terms to set the titlebar/icon title
49 termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
50 # use this for the hard status string
51 #hardstatus string "%h%? users: %u%?"
52
53 # An alternative hardstatus to display a bar at the bottom listing the
54 # windownames and highlighting the current windowname in blue. (This is only
55 # enabled if there is no hardstatus setting for your terminal)
56 #
57 #hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
58
59 # status line at the bottom of terminal
60 # display numbers and titles:
61 # for inactive windows - black on cyan
62 # for active window - white on blue
63 hardstatus alwayslastline
64 hardstatus string "%{= ck}%-w%{= bw}%n%f %t%{-}%+w %-="
65
66 # set these terminals up to be 'optimal' instead of vt100
67 termcapinfo xterm*|rxvt*|linux*|Eterm* OP
68
69 # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
70 # (This fixes the "Aborted because of window size change" konsole symptoms found
71 #  in bug #134198)
72 termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
73
74 # To get screen to add lines to xterm's scrollback buffer, uncomment the
75 # following termcapinfo line which tells xterm to use the normal screen buffer
76 # (which has scrollback), not the alternate screen buffer.
77 #
78 #termcapinfo xterm*|rxvt* ti@:te@
79
80 # Use the alternate screen of the xterm-like terminal
81 # https://unix.stackexchange.com/a/261939
82 #termcapinfo xterm* 'ti=\E[?1049h:te=\E[?1049l'
83 #termcapinfo rxvt* 'ti=\E7\E[?47h:te=\E[2J\E[?47l\E8'
84
85 # Do not use the alternate screen at all
86 # run `tput smcup; screen -S test; tput rmcup`
87 termcapinfo xterm*|rxvt* 'ti=:te='
88
89 # Enable non-blocking mode to better cope with flaky ssh connections.
90 defnonblock 5