RADLib
RADical C++ application framework
RADUi::TerminalBuffer Class Reference

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< TerminalLinesnapshot () 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...
 

Detailed Description

ANSI/VT-style terminal screen buffer and parser.

Member Function Documentation

◆ append()

void RADUi::TerminalBuffer::append ( std::string_view  bytes)

Appends raw terminal output bytes and updates screen state.

◆ clear()

void RADUi::TerminalBuffer::clear ( )

Clears terminal contents and parser state.

◆ cursor()

TerminalCursor RADUi::TerminalBuffer::cursor ( ) const

Returns current cursor state.

◆ isAlternateScreen()

bool RADUi::TerminalBuffer::isAlternateScreen ( ) const

Returns true when the alternate screen buffer is active.

◆ plainText()

std::string RADUi::TerminalBuffer::plainText ( ) const

Returns visible terminal text without color metadata.

◆ setScreenSize()

void RADUi::TerminalBuffer::setScreenSize ( size_t  rows,
size_t  columns 
)

Sets visible terminal dimensions.

◆ snapshot()

std::vector<TerminalLine> RADUi::TerminalBuffer::snapshot ( ) const

Returns a copy of visible terminal lines.


The documentation for this class was generated from the following file: