That Terminal
A terminal emulator designed for video making purposes.
terminal.cc File Reference

Defines TerminalWindow, the bulk of the terminal emulator. Its main purpose is to render anything that is printed by the subprocess. More...

#include <array>
#include <cstdio>
#include <SDL.h>
#include "terminal.hh"
#include "ctype.hh"
#include "256color.hh"
#include "color.hh"
#include "ui.hh"
Include dependency graph for terminal.cc:

Macros

#define a(n)   M(n+0),M(n+1),M(n+2),M(n+3),M(n+4),M(n+5),M(n+6),M(n+7),M(n+8),M(n+9),
 
#define set(what, v)
 
#define CsiState(c)
 
#define AnyState(c)
 

Detailed Description

Defines TerminalWindow, the bulk of the terminal emulator. Its main purpose is to render anything that is printed by the subprocess.

Macro Definition Documentation

◆ AnyState

#define AnyState (   c)
Value:
State(c,st_default): case State(c,st_esc): \
case State(c,st_scs): case State(c,st_csi_ex): \
case State(c,st_string_str): case State(c,st_csi_quo): \
case State(c,st_scr): case State(c,st_esc_percent): \
case State(c,st_csi_dol): case State(c,st_csi_dec_dol): \
case CsiState(c)

◆ CsiState

#define CsiState (   c)
Value:
State(c,st_csi): case State(c,st_csi_dec2): \
case State(c,st_csi_dec): case State(c,st_csi_dec3): \
case State(c,st_string)

◆ set

#define set (   what,
 
)
Value:
change_attr([&](Cell& c, auto x){c.what = x;}, \
[&](const Cell& c) { return c.what; }, \
v)
Definition: cell.hh:39