aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-10-06 23:45:59 +0200
committerKarel Kočí <cynerd@email.cz>2017-10-06 23:45:59 +0200
commite9f1fe32e2e7d4b5187cc408a10a17e1ef637377 (patch)
treef161027a509fb46a38a2edb766ed4068c91872f3
parent6a557ffac583f30ec261f387ecc9b9a633f6a39e (diff)
downloadpresentations-e9f1fe32e2e7d4b5187cc408a10a17e1ef637377.tar.gz
presentations-e9f1fe32e2e7d4b5187cc408a10a17e1ef637377.tar.bz2
presentations-e9f1fe32e2e7d4b5187cc408a10a17e1ef637377.zip
Add simple script to turn terminal to white color
-rwxr-xr-xwhite-terminal.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/white-terminal.sh b/white-terminal.sh
new file mode 100755
index 0000000..40fd2f0
--- /dev/null
+++ b/white-terminal.sh
@@ -0,0 +1,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
+