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.
13 #define DEFAULT_TTY_SIZE 80
15 extern void tprintf_init(void);
16 extern void tprintf(char *msg
, ...) __check_format_printf(1, 2);
17 extern void tprintf_flush(void);
18 extern void tprintf_cleanup(void);
20 #define colorize_start(fore) "\033[" __##fore "m"
21 #define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m"
22 #define colorize_end() "\033[" __reset "m"
24 #define colorize_str(fore, text) colorize_start(fore) text colorize_end()
25 #define colorize_full_str(fore, back, text) colorize_start_full(fore, back) text colorize_end()
36 #define __magenta "35"
40 #define __on_black "40"
42 #define __on_green "42"
43 #define __on_yellow "43"
44 #define __on_blue "44"
45 #define __on_magenta "45"
46 #define __on_cyan "46"
47 #define __on_white "47"
49 #endif /* TPRINTF_H */