2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2009, 2010 Daniel Borkmann.
5 * Subject to the GPL, version 2.
11 #define DEFAULT_TTY_SIZE 80
13 extern void tprintf_init(void);
14 extern void tprintf(char *msg
, ...);
15 extern void tprintf_flush(void);
16 extern void tprintf_cleanup(void);
25 #define __magenta "35"
28 #define __on_black "40"
30 #define __on_green "42"
31 #define __on_yellow "43"
32 #define __on_blue "44"
33 #define __on_magenta "45"
34 #define __on_cyan "46"
35 #define __on_white "47"
37 #define colorize_start(fore) "\033[" __##fore "m"
38 #define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m"
39 #define colorize_end() "\033[" __reset "m"
40 #define colorize_str(fore, text) \
41 colorize_start(fore) text colorize_end()
42 #define colorize_full_str(fore, back, text) \
43 colorize_start_full(fore, back) text colorize_end()
45 #endif /* TPRINTF_H */