67 void parse(
const std::string& str);
144 bool getSize(
int* columns,
int* rows);
24-step grayscale starts here
SimpleColor
Simple colors.
bool getSize(int *columns, int *rows)
Get current window size.
void parse(char c)
parse single character c
void setForegroundColor(uint32_t color)
Set 24-bit foreground color.
void setSimpleBackground(SimpleColor color)
std::map< std::string, SpecialKey > m_specialKeys
void moveCursorToStartOfLine()
Move cursor to start of the line.
void setBackgroundColor(uint32_t color)
Set 24-bit background color.
void parseSetAttributes(const std::string &str)
void setSimplePair(SimpleColor fg, SimpleColor bg)
std::string m_currentEscapeStr
void clearToEndOfLine()
Clear characters from cursor to end of line.
void setStandardColors()
Reset fg + bg to standard terminal colors.
void setCursorVisible()
restore cursor
void setSimpleForeground(SimpleColor color)
Encapsulates terminal control.
void moveCursorUp(int numLines)
Move cursor up by numLines.
bool has256Colors() const
void setWindowTitle(const std::string &title)
void setCursorInvisible()
hide cursor
Terminal escape sequence parser.
void apply(Terminal *term)
Apply the current internal state (colors) on the terminal.
void clearWindowTitle(const std::string &backup)