2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2009, 2010 Daniel Borkmann.
4 * Subject to the GPL, version 2.
13 extern void tprintf_init(void);
14 extern void tprintf(char *msg
, ...) __check_format_printf(1, 2);
15 extern void tprintf_flush(void);
16 extern void tprintf_cleanup(void);
18 extern void tputchar_safe(int c
);
19 extern void tputs_safe(const char *str
, size_t len
);
21 #define colorize_start(fore) "\033[" __##fore "m"
22 #define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m"
23 #define colorize_end() "\033[" __reset "m"
25 #define DEFAULT_TTY_SIZE 80
27 #endif /* TPRINTF_H */