diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /bin/term-apply-colors | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin/term-apply-colors')
| -rwxr-xr-x | bin/term-apply-colors | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bin/term-apply-colors b/bin/term-apply-colors deleted file mode 100755 index 829ab4f..0000000 --- a/bin/term-apply-colors +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -set -e -[ -n "$DEBUG" ] && set -x - -# stolen from https://github.com/lemnos/theme.sh/blob/master/bin/theme.sh -awk ' -BEGIN { - fgesc="\033]10;#%s\007" - bgesc="\033]11;#%s\007" - curesc="\033]12;#%s\007" - colesc="\033]4;%d;#%s\007" -} -/^foreground:/ { printf fgesc, substr($2, 2) > "/dev/tty" } -/^background:/ { printf bgesc, substr($2, 2) > "/dev/tty" } -/^cursor:/ { printf curesc, substr($2, 2) > "/dev/tty" } -/^[0-9]+:/ { printf colesc, $1, substr($2, 2) > "/dev/tty" } -' |