15 #ifndef NINJA_LINE_PRINTER_H_
16 #define NINJA_LINE_PRINTER_H_
36 void Print(
string to_print, LineType type);
39 void PrintOnNewLine(
const string& to_print);
43 void SetConsoleLocked(
bool locked);
69 void PrintOrBuffer(
const char *data,
size_t size);
72 #endif // NINJA_LINE_PRINTER_H_
bool have_blank_line_
Whether the caret is at the beginning of a blank line.
bool is_smart_terminal() const
bool console_locked_
Whether console is locked.
LineType line_type_
Buffered line type while console is locked.
void set_smart_terminal(bool smart)
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.