aboutsummaryrefslogtreecommitdiff
path: root/white-terminal.sh
blob: 40fd2f05a7e8f95845fc4d2edb45d90d78d3469f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function recolor () {
	tr -d ' \t' | sed -n '
		s/.*background:/\x1b]11;/p
		s/.*foreground:/\x1b]10;/p
		s/.*color\([0-9][^:]*\):/\x1b]4;\1;/p
	' | tr \\n \\a
}

recolor <<EOF
*.foreground: black
*.background: white
*.color0:   black
*.color1:   red3
*.color2:   green3
*.color3:   yellow
*.color4:   DodgerBlue3
*.color5:   blue1
*.color6:   blue30
*.color7:   gray90
*.color8:   gray50
*.color9:   red3
*.color10:  green3
*.color11:  yellow3
*.color12:  blue3
*.color13:  magenta
*.color14:  blue2
*.color15:  gray
EOF