summaryrefslogtreecommitdiff
path: root/colorize.h
diff options
context:
space:
mode:
Diffstat (limited to 'colorize.h')
-rw-r--r--colorize.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/colorize.h b/colorize.h
new file mode 100644
index 0000000..928deb2
--- /dev/null
+++ b/colorize.h
@@ -0,0 +1,8 @@
+#ifndef COLORIZE_H
+#define COLORIZE_H
+
+#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 /* COLORIZE_H */