15 #ifndef NINJA_LINE_PRINTER_H_ 16 #define NINJA_LINE_PRINTER_H_ 38 void Print(
string to_print, LineType type);
41 void PrintOnNewLine(
const string& to_print);
45 void SetConsoleLocked(
bool locked);
74 void PrintOrBuffer(
const char *data,
size_t size);
77 #endif // NINJA_LINE_PRINTER_H_
bool supports_color() const
bool have_blank_line_
Whether the caret is at the beginning of a blank line.
bool supports_color_
Whether we can use ISO 6429 (ANSI) color sequences.
bool console_locked_
Whether console is locked.
LineType line_type_
Buffered line type while console is locked.
void set_smart_terminal(bool smart)
bool is_smart_terminal() const
string line_buffer_
Buffered current line while console is locked.
Prints lines of text, possibly overprinting previously printed lines if the terminal supports it...
bool smart_terminal_
Whether we can do fancy terminal control codes.
string output_buffer_
Buffered console output while console is locked.