15 #ifndef NINJA_LINE_PRINTER_H_ 16 #define NINJA_LINE_PRINTER_H_ 76 #endif // NINJA_LINE_PRINTER_H_
bool supports_color() const
bool have_blank_line_
Whether the caret is at the beginning of a blank line.
void Print(std::string to_print, LineType type)
Overprints the current line.
bool supports_color_
Whether we can use ISO 6429 (ANSI) color sequences.
std::string output_buffer_
Buffered console output while console is locked.
bool console_locked_
Whether console is locked.
LineType line_type_
Buffered line type while console is locked.
void set_smart_terminal(bool smart)
void SetConsoleLocked(bool locked)
Lock or unlock the console.
bool is_smart_terminal() const
std::string line_buffer_
Buffered current line while console is locked.
void PrintOrBuffer(const char *data, size_t size)
Print the given data to the console, or buffer it if it 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.
void PrintOnNewLine(const std::string &to_print)
Prints a string on a new line, not overprinting previous output.