diff options
Diffstat (limited to 'dist/ansi_color.sh')
-rw-r--r-- | dist/ansi_color.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dist/ansi_color.sh b/dist/ansi_color.sh new file mode 100644 index 000000000..533e0e14b --- /dev/null +++ b/dist/ansi_color.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +enable_color() { + ENABLECOLOR='-c ' + ANSI_RED="\033[31m" + ANSI_GREEN="\033[32m" + ANSI_YELLOW="\033[33m" + ANSI_BLUE="\033[34m" + ANSI_MAGENTA="\033[35m" + ANSI_CYAN="\033[36;1m" + ANSI_DARKCYAN="\033[36m" + ANSI_NOCOLOR="\033[0m" +} + +disable_color() { unset ENABLECOLOR ANSI_RED ANSI_GREEN ANSI_YELLOW ANSI_BLUE ANSI_MAGENTA ANSI_CYAN ANSI_DARKCYAN ANSI_NOCOLOR; } + +enable_color
\ No newline at end of file |