|
RADLib
RADical C++ application framework
|
ANSI/VT-style terminal screen buffer and parser. More...
#include <RADTerminal.h>
Public Member Functions | |
| void | append (std::string_view bytes) |
| Appends raw terminal output bytes and updates screen state. More... | |
| std::vector< TerminalLine > | snapshot () const |
| Returns a copy of visible terminal lines. More... | |
| std::string | plainText () const |
| Returns visible terminal text without color metadata. More... | |
| bool | isAlternateScreen () const |
| Returns true when the alternate screen buffer is active. More... | |
| TerminalCursor | cursor () const |
| Returns current cursor state. More... | |
| void | setScreenSize (size_t rows, size_t columns) |
| Sets visible terminal dimensions. More... | |
| void | clear () |
| Clears terminal contents and parser state. More... | |
ANSI/VT-style terminal screen buffer and parser.
| void RADUi::TerminalBuffer::append | ( | std::string_view | bytes | ) |
Appends raw terminal output bytes and updates screen state.
| void RADUi::TerminalBuffer::clear | ( | ) |
Clears terminal contents and parser state.
| TerminalCursor RADUi::TerminalBuffer::cursor | ( | ) | const |
Returns current cursor state.
| bool RADUi::TerminalBuffer::isAlternateScreen | ( | ) | const |
Returns true when the alternate screen buffer is active.
| std::string RADUi::TerminalBuffer::plainText | ( | ) | const |
Returns visible terminal text without color metadata.
| void RADUi::TerminalBuffer::setScreenSize | ( | size_t | rows, |
| size_t | columns | ||
| ) |
Sets visible terminal dimensions.
| std::vector<TerminalLine> RADUi::TerminalBuffer::snapshot | ( | ) | const |
Returns a copy of visible terminal lines.