summaryrefslogtreecommitdiff
path: root/colorize.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-04 12:22:03 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-04 12:22:03 +0200
commit5ead7d42066286031cdd75b833fc9d3a2f6b3a53 (patch)
treebeb8d52f0417c5835a453e21235f3f8272530579 /colorize.h
parent01525e848cd682d51319383c9968979224255b53 (diff)
misc: cleanup header comments
Remove header comments where appropriate. And also clean up colorize a bit. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
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 */