Demos

This repository includes several small demo applications.

Use the gallery in two ways: browse by feature if you are solving a concrete problem, or open the individual pages as reference implementations when you want to study real code.

Find a Demo by Feature

Feature Family

Matching Demos

Getting Started / Smallest Examples

Minimum Effort, Terminal Chronicle, UI Hello World

Direct Terminal Output / Command Help / Paragraphs

Terminal Chronicle, Command Line Help, Display All Attributes, Display All Colors

Text Layout / Unicode / Fonts

Command Line Help, Text Gallery

Colors / Attributes / Animated Color Sequences

Display All Colors, Display All Attributes, Frame Color Animations, Retro Plasma

Frames / Intersections / Custom Frame Tiles

Minimum Effort, Frame Color Animations, Frame Weaver, Grid Layout

Buffers / Cursor Buffers / Buffer Views / Scrolling

HTML Viewer, Log Viewer, Key Input Demo, UI HTML Viewer

Bitmap Rendering

Bitmap Showcase, UI World View

HTML Rendering

HTML Viewer, UI HTML Viewer

UI Framework Surfaces

UI Hello World, UI Choice, UI Sections, UI HTML Viewer, UI World View

Input Handling / Refresh Behavior / Screen Update Modes

Key Input Demo, Retro Plasma, Update Screen Modes

Building the Demo Applications

When this repository is used as the top-level project, the demo applications are built automatically.

If you integrate the project into a larger build or disabled demos previously, you can enable them explicitly during configuration:

$ cmake -B cmake-build-debug -G Ninja -DCMAKE_BUILD_TYPE=Debug -DERBSLAND_COLOR_TERM_ENABLE_DEMOS=ON .
$ cmake --build cmake-build-debug

After a successful build, you will find the demo executables in cmake-build-debug/demo-apps/.

Browse All Demo Pages