| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#ifndef PRINT_H |
| 18 |
#define PRINT_H |
| 19 |
|
| 20 |
#include "command.h" |
| 21 |
|
| 22 |
extern bool g_stdoutIsTty; |
| 23 |
extern char const* g_escapeBold; |
| 24 |
extern char const* g_escapeRedBold; |
| 25 |
extern char const* g_escapeGreenBold; |
| 26 |
extern char const* g_escapeYellowBold; |
| 27 |
extern char const* g_escapeUnderline; |
| 28 |
extern char const* g_escapeEndColor; |
| 29 |
extern char const* g_escapeClearLine; |
| 30 |
|
| 31 |
void init_print(); |
| 32 |
void print_status(const char* format, ...); |
| 33 |
void print_command(const Command& command); |
| 34 |
void print_error(const char* format, ...); |
| 35 |
void print_warning(const char* format, ...); |
| 36 |
void print_info(const char* format, ...); |
| 37 |
void print_one_line(const char* format, ...); |
| 38 |
void check_error(int err); |
| 39 |
|
| 40 |
#endif |