live-build/functions/color.sh

41 lines
758 B
Bash
Raw Normal View History

#!/bin/sh
# color.sh - define color values
# Copyright (C) 2006-2008 Daniel Baumann <daniel@debian.org>
#
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
2008-10-29 16:08:54 -01:00
if [ "${LH_COLOR}" != "disabled" ]
then
NO_COLOR="\033[0m"
2008-10-29 16:08:54 -01:00
UNDERSCORE="\033[4m"
BLINK="\033[5m"
2008-10-29 16:08:54 -01:00
BLACK="\033[0;30m"
DARK_GRAY="\033[1;30m"
2008-10-29 16:08:54 -01:00
RED="\033[0;31m"
LIGHT_RED="\033[1;31m"
2008-10-29 16:08:54 -01:00
GREEN="\033[0;32m"
LIGHT_GREEN="\033[1;32m"
2008-10-29 16:08:54 -01:00
BROWN="\033[0;33m"
YELLOW="\033[1;33m"
2008-10-29 16:08:54 -01:00
BLUE="\033[0;34m"
LIGHT_BLUE="\033[1;34m"
2008-10-29 16:08:54 -01:00
PURPLE="\033[0;35m"
LIGHT_PURPLE="\033[1;35m"
2008-10-29 16:08:54 -01:00
CYAN="\033[0;36m"
LIGHT_CYAN="\033[1;36m"
2008-10-29 16:08:54 -01:00
GRAY="\033[0;37m"
WHITE="\033[1;37m"
fi