From 1e82997daab7c302c8b90ebc57b1cce5bd55a518 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 1 May 2022 15:59:36 +0100 Subject: moved generated colours to main project --- Makefile | 4 ++-- src/colors.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ src/colors.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 src/colors.h create mode 100644 src/colors.sh diff --git a/Makefile b/Makefile index 20f829b..f5b606a 100755 --- a/Makefile +++ b/Makefile @@ -35,7 +35,6 @@ install-glyphs: src/glyphs.sh install -Dm755 src/glyphs.sh ${DESTDIR}${PREFIX}/lib - check-parseconf: shtests parseconf test/parseconf.sh ${DIST}/shtests ./test/parseconf.sh @@ -50,7 +49,8 @@ parseconf: src/parseconf.sh install -Dm755 src/parseconf.sh ${DIST}/parseconf colors: src/colors.list - sh src/generate_colors.sh ${DIST}/ src/colors.list + cp src/colors.sh ${DIST} + cp src/colors.h ${DIST} clean: rm -r ${DIST} 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 "" +#define BOLD "" +#define BLACK "" +#define RED "" +#define GREEN "" +#define YELLOW "" +#define BLUE "" +#define MAGENTA "" +#define CYAN "" +#define WHITE "" +#define DEFAULT "" +#define BG_BLACK "" +#define BG_RED "" +#define BG_GREEN "" +#define BG_YELLOW "" +#define BG_BLUE "" +#define BG_MAGENTA "" +#define BG_CYAN "" +#define BG_WHITE "" +#define BG_DEFAULT "" +#define LIGHT_BLACK "" +#define LIGHT_RED "" +#define LIGHT_GREEN "" +#define LIGHT_YELLOW "" +#define LIGHT_BLUE "" +#define LIGHT_MAGENTA "" +#define LIGHT_CYAN "" +#define LIGHT_WHITE "" +#define LIGHT_DEFAULT "" +#define BOLDBLACK "" +#define BOLDRED "" +#define BOLDGREEN "" +#define BOLDYELLOW "" +#define BOLDBLUE "" +#define BOLDMAGENTA "" +#define BOLDCYAN "" +#define BOLDWHITE "" 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 "") +export BOLD=$(printf "") +export BLACK=$(printf "") +export RED=$(printf "") +export GREEN=$(printf "") +export YELLOW=$(printf "") +export BLUE=$(printf "") +export MAGENTA=$(printf "") +export CYAN=$(printf "") +export WHITE=$(printf "") +export DEFAULT=$(printf "") +export BG_BLACK=$(printf "") +export BG_RED=$(printf "") +export BG_GREEN=$(printf "") +export BG_YELLOW=$(printf "") +export BG_BLUE=$(printf "") +export BG_MAGENTA=$(printf "") +export BG_CYAN=$(printf "") +export BG_WHITE=$(printf "") +export BG_DEFAULT=$(printf "") +export LIGHT_BLACK=$(printf "") +export LIGHT_RED=$(printf "") +export LIGHT_GREEN=$(printf "") +export LIGHT_YELLOW=$(printf "") +export LIGHT_BLUE=$(printf "") +export LIGHT_MAGENTA=$(printf "") +export LIGHT_CYAN=$(printf "") +export LIGHT_WHITE=$(printf "") +export LIGHT_DEFAULT=$(printf "") +export BOLDBLACK=$(printf "") +export BOLDRED=$(printf "") +export BOLDGREEN=$(printf "") +export BOLDYELLOW=$(printf "") +export BOLDBLUE=$(printf "") +export BOLDMAGENTA=$(printf "") +export BOLDCYAN=$(printf "") +export BOLDWHITE=$(printf "") -- cgit v1.2.1