|
That Terminal
A terminal emulator designed for video making purposes.
|
#include <terminal.hh>

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) | |
A terminal emulator. It is always attached to some instance of Window.
|
inline |
Initializes the terminal window with reference to a
| w | Window. |
| void TerminalWindow::Resize | ( | std::size_t | newsx, |
| std::size_t | newsy | ||
| ) |
Resizes the terminal window to a different size.
| void TerminalWindow::Write | ( | std::u32string_view | s | ) |
Processes output (input from the terminal's perspective) from the subprocess. Interprets ANSI codes.
| s | String 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.