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