Self-running showcase of the VT/ANSI terminal output on a graphical display (640x480, 16 colors).
The application writes text and escape sequences to fabgl::Terminal, exactly as a remote host would do.
The demo cycles through these screens, forever:
- Welcome: screen, viewport and terminal size, free memory
- ANSI colors: the 16 foreground and background colors (
ESC[30m...ESC[37m,ESC[90m...ESC[97m, ...) - Styles: bold, italic, underlined, blinking, inverse and their combinations, double width and double height
lines (
ESC#6,ESC#3,ESC#4) - Mixed text and graphics: random points, lines, rectangles and ellipses drawn with
fabgl::Canvason the same screen, then the terminal scrolls over them - Fast rendering: a VT/ANSI text animation
- Colored attributes:
Terminal::setColorForAttribute()maps bold/italic/underline to colors, with and without the style
There are no controls.
![]() ANSI colors, text styles, double width and double height lines |
![]() Text and graphics mixed: points and lines drawn over the text |
fabgl::Terminalon top offabgl::VGA16Controller- The ANSI/VT escape sequences supported by the terminal
- Mixing terminal text and
Canvasgraphics on the same display
See SimpleTextTerminalOut for the same demo using the text-only VGA mode.
- VGA output (default pins)
See Building the examples in the main README.

