From 5fe49cc123b1cc363e1cf6305884c64e71f73670 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 10 Jul 2015 17:09:02 +0100 Subject: Add script for instant change of terminal colors --- bin/recolor.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/recolor.sh (limited to 'bin/recolor.sh') diff --git a/bin/recolor.sh b/bin/recolor.sh new file mode 100755 index 0000000..6e87b1f --- /dev/null +++ b/bin/recolor.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +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 -- cgit v1.2.3