That Terminal
A terminal emulator designed for video making purposes.
TerminalWindow Class Reference

#include <terminal.hh>

Collaboration diagram for TerminalWindow:

Public Member Functions

void Write (std::u32string_view s)
 
 TerminalWindow (Window &w)
 
void Resize (std::size_t newsx, std::size_t newsy)
 

Public Attributes

std::deque< char32_t > OutBuffer
 Outgoing symbols (some ANSI codes cause input to be generated)
 

Detailed Description

A terminal emulator. It is always attached to some instance of Window.

Constructor & Destructor Documentation

◆ TerminalWindow()

TerminalWindow::TerminalWindow ( Window w)
inline

Initializes the terminal window with reference to a

Parameters
wWindow.

Member Function Documentation

◆ Resize()

void TerminalWindow::Resize ( std::size_t  newsx,
std::size_t  newsy 
)

Resizes the terminal window to a different size.

◆ Write()

void TerminalWindow::Write ( std::u32string_view  s)

Processes output (input from the terminal's perspective) from the subprocess. Interprets ANSI codes.

Parameters
sString to parse. Internal state allows ANSI codes to be split between successive calls, i.e. Write("abc") works identically to Write("a");Write("b");Write("c").

Repositions cursor horizontally and ensures the new location is within allowed range.

Repositions cursor vertically and ensures the new location is within allowed range. param tgty = Target y coordinate param strict = If set, only permits moving inside current window; otherwise permits moving anywhere on screen.

Combination of ClampedMoveX and ClampedMoveY.

Performs line feed.

Performs typewriter write for one character.

ProcessSGR processes a SGR command.


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