From 355bbe1b1e7fe1b0ab07fe2de8cb6e64418d51e0 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Fri, 12 Aug 2016 01:42:24 +0300 Subject: colorize: Squash colorize macros into colors.h Move colorize_xxx macroes to colors.h, the reason is to have one file for coloring stuff and have less files in the source tree. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- colors.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'colors.h') diff --git a/colors.h b/colors.h index ee4cd12..0236d35 100644 --- a/colors.h +++ b/colors.h @@ -23,4 +23,8 @@ #define __on_cyan "46" #define __on_white "47" +#define colorize_start(fore) "\033[" __##fore "m" +#define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m" +#define colorize_end() "\033[" __reset "m" + #endif /* COLORS_H */ -- cgit v1.2.3-54-g00ecf