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