Go to the documentation of this file.
68 Color(
const std::string& fg,
const std::string& bg)
112 void parse(
const std::string& str);
123 std::vector<std::string>
wrap(
const std::string& str,
unsigned int columns);
205 bool getSize(
int* columns,
int* rows);
std::string m_currentEscapeStr
bool m_currentEscapeAborted
void moveCursorToStartOfLine()
Move cursor to start of the line.
std::chrono::steady_clock::time_point m_escapeStartTime
std::string standardColorCode()
Escape codes for standard colors.
Color color(SimpleColor code)
void setCursorVisible()
restore cursor
void setCursorInvisible()
hide cursor
bool parse(char c)
parse single character c
void setBackgroundColor(uint32_t color)
Set 24-bit background color.
const std::string & foregroundCode() const
@ Grayscale
24-step grayscale starts here
const std::string & backgroundCode() const
void setForegroundColor(uint32_t color)
Set 24-bit foreground color.
void setLineWrap(bool on)
void clearToEndOfLine()
Clear characters from cursor to end of line.
Style(Color fg, Color bg)
void setSimplePair(SimpleColor fg, SimpleColor bg)
Terminal escape sequence parser.
unsigned int m_currentEscapeAbortIdx
void setSimpleBackground(SimpleColor color)
void setStandardColors()
Reset fg + bg to standard terminal colors.
std::map< std::string, SpecialKey > m_specialKeys
std::string m_lineWrapOffStr
void setWindowTitle(const std::string &title)
void moveCursorUp(int numLines)
Move cursor up by numLines.
bool has256Colors() const
void clearWindowTitle(const std::string &backup)
std::string m_lineWrapOnStr
Color(const std::string &fg, const std::string &bg)
Encapsulates terminal control.
void apply()
Apply the current internal state (colors) on the terminal.
std::vector< std::string > wrap(const std::string &str, unsigned int columns)
Apply line wrapping.
void parseSetAttributes(const std::string &str)
void setSimpleForeground(SimpleColor color)
bool getSize(int *columns, int *rows)
Get current window size.
SimpleColor
Simple colors.
rosmon_core
Author(s): Max Schwarz
autogenerated on Wed Feb 21 2024 04:01:14