.screenrc

Thu, 14 Sep 2017 19:48:58 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 14 Sep 2017 19:48:58 -0400
changeset 641
60b56bbfc143
parent 16
e24163388132
permissions
-rw-r--r--

use strict regex ops

16
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
1 # vim: fdm=marker
3
b3850cb0506e add 256-color screenrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2
16
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
3 startup_message off
15
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
4
4
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
5 # babun on windows doesn't have utmp, i don't really work in situations
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
6 # where not being listed is a concern
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
7 deflogin off
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
8
15
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
9 # use xterm scrollbacks
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
10 termcapinfo xterm* ti@:te@
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
11
4
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
12 # pass-through 256-color mode
3
b3850cb0506e add 256-color screenrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 attrcolor b ".I"
b3850cb0506e add 256-color screenrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
b3850cb0506e add 256-color screenrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 defbce "on"
4
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
16 altscreen
3
b3850cb0506e add 256-color screenrc
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17
4
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
18 # status line & cur window in screen title
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
19 termcapinfo xterm*|Eterm|mlterm "hs:ts=\E]0;:fs=\007:ds=\E]0;screen\007"
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
20 hardstatus off
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
21 hardstatus string "screen %n (%t)%? [%h]%?"
5
fa2f0f9008e8 Something usable in normal colorschemes and babun
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
22 caption always "%{-u wb}%-w%{+u Wb}%n%f*%t%{-}%+w"
4
f75bf6b057bd Customize screen
Meredith Howard <mhoward@roomag.org>
parents: 3
diff changeset
23
16
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
24 # split movements with C-a arrow
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
25 bind -k kl focus left
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
26 bind -k kd focus down
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
27 bind -k ku focus up
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
28 bind -k kr focus right
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
29
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
30 bind -k -a kl focus left
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
31 bind -k -a kd focus down
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
32 bind -k -a ku focus up
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
33 bind -k -a kr focus right
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
34
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
35 # F2 puts Screen into resize mode. Resize regions using hjkl keys.
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
36 bind R eval "command -c rsz" # enter resize mode
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
37
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
38 # resize mode keys {{{
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
39 # use hjkl keys to resize regions
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
40 bind -c rsz h eval "resize -h -5" "command -c rsz"
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
41 bind -c rsz j eval "resize -v -5" "command -c rsz"
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
42 bind -c rsz k eval "resize -v +5" "command -c rsz"
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
43 bind -c rsz l eval "resize -h +5" "command -c rsz"
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
44
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
45 # quickly switch between regions using tab and arrows
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
46 bind -c rsz \t eval "focus" "command -c rsz" # Tab
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
47 bind -c rsz -k kl eval "focus left" "command -c rsz" # Left
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
48 bind -c rsz -k kr eval "focus right" "command -c rsz" # Right
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
49 bind -c rsz -k ku eval "focus up" "command -c rsz" # Up
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
50 bind -c rsz -k kd eval "focus down" "command -c rsz" # Down
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
51 # }}}
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
52
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
53 # and local settings
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
54 source $HOME/.screenrc.local
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
55
15
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
56 # skip window 0
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
57 bind c screen 1
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
58 bind ^c screen 1
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
59 bind 0 select 10
ea93e309d4dd screen: use xterm scrollbacks, skip window 0
Meredith Howard <mhoward@roomag.org>
parents: 5
diff changeset
60 screen 1
16
e24163388132 screen: further customization
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
61

mercurial