diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/colors.h | 45 | ||||
-rw-r--r-- | src/colors.sh | 44 |
2 files changed, 89 insertions, 0 deletions
diff --git a/src/colors.h b/src/colors.h new file mode 100644 index 0000000..e7bc26d --- /dev/null +++ b/src/colors.h @@ -0,0 +1,45 @@ +/* + * colors.h + * + * list of ansi color codes + * provided by xiutils + * + */ + +#define RESET "[0m" +#define BOLD "[0;1m" +#define BLACK "[0;30m" +#define RED "[0;31m" +#define GREEN "[0;32m" +#define YELLOW "[0;33m" +#define BLUE "[0;34m" +#define MAGENTA "[0;35m" +#define CYAN "[0;36m" +#define WHITE "[0;37m" +#define DEFAULT "[0;39m" +#define BG_BLACK "[40m" +#define BG_RED "[41m" +#define BG_GREEN "[42m" +#define BG_YELLOW "[43m" +#define BG_BLUE "[44m" +#define BG_MAGENTA "[45m" +#define BG_CYAN "[46m" +#define BG_WHITE "[47m" +#define BG_DEFAULT "[49m" +#define LIGHT_BLACK "[0;90m" +#define LIGHT_RED "[0;91m" +#define LIGHT_GREEN "[0;92m" +#define LIGHT_YELLOW "[0;93m" +#define LIGHT_BLUE "[0;94m" +#define LIGHT_MAGENTA "[0;95m" +#define LIGHT_CYAN "[0;96m" +#define LIGHT_WHITE "[0;97m" +#define LIGHT_DEFAULT "[0;99m" +#define BOLDBLACK "[1;30m" +#define BOLDRED "[1;31m" +#define BOLDGREEN "[1;32m" +#define BOLDYELLOW "[1;33m" +#define BOLDBLUE "[1;34m" +#define BOLDMAGENTA "[1;35m" +#define BOLDCYAN "[1;36m" +#define BOLDWHITE "[1;37m" diff --git a/src/colors.sh b/src/colors.sh new file mode 100644 index 0000000..8e5de11 --- /dev/null +++ b/src/colors.sh @@ -0,0 +1,44 @@ +# +# colors.h +# +# list of ansi color codes +# provided by xiutils +# + +export RESET=$(printf "[0m") +export BOLD=$(printf "[0;1m") +export BLACK=$(printf "[0;30m") +export RED=$(printf "[0;31m") +export GREEN=$(printf "[0;32m") +export YELLOW=$(printf "[0;33m") +export BLUE=$(printf "[0;34m") +export MAGENTA=$(printf "[0;35m") +export CYAN=$(printf "[0;36m") +export WHITE=$(printf "[0;37m") +export DEFAULT=$(printf "[0;39m") +export BG_BLACK=$(printf "[40m") +export BG_RED=$(printf "[41m") +export BG_GREEN=$(printf "[42m") +export BG_YELLOW=$(printf "[43m") +export BG_BLUE=$(printf "[44m") +export BG_MAGENTA=$(printf "[45m") +export BG_CYAN=$(printf "[46m") +export BG_WHITE=$(printf "[47m") +export BG_DEFAULT=$(printf "[49m") +export LIGHT_BLACK=$(printf "[0;90m") +export LIGHT_RED=$(printf "[0;91m") +export LIGHT_GREEN=$(printf "[0;92m") +export LIGHT_YELLOW=$(printf "[0;93m") +export LIGHT_BLUE=$(printf "[0;94m") +export LIGHT_MAGENTA=$(printf "[0;95m") +export LIGHT_CYAN=$(printf "[0;96m") +export LIGHT_WHITE=$(printf "[0;97m") +export LIGHT_DEFAULT=$(printf "[0;99m") +export BOLDBLACK=$(printf "[1;30m") +export BOLDRED=$(printf "[1;31m") +export BOLDGREEN=$(printf "[1;32m") +export BOLDYELLOW=$(printf "[1;33m") +export BOLDBLUE=$(printf "[1;34m") +export BOLDMAGENTA=$(printf "[1;35m") +export BOLDCYAN=$(printf "[1;36m") +export BOLDWHITE=$(printf "[1;37m") |