diff options
Diffstat (limited to 'colors/ansi.sh')
| -rw-r--r--[-rwxr-xr-x] | colors/ansi.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/colors/ansi.sh b/colors/ansi.sh index e0334f9..37fa3aa 100755..100644 --- a/colors/ansi.sh +++ b/colors/ansi.sh @@ -15,5 +15,7 @@ reset() { acol 0; } # logical input processing colsep() { echo $* | fold -w2; } +numdec() { printf '%d\n' 0x"$1" 0x"$2" 0x"$3"; } +coldec() { numdec $(colsep "$@"); } fgc() { fgx $(colsep $1); } bgc() { bgx $(colsep $1); } |
