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 |
|
Direct Terminal Output / Command Help / Paragraphs |
Terminal Chronicle, Command Line Help, Display All Attributes, Display All Colors |
Text Layout / Unicode / Fonts |
|
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 |
|
Bitmap Rendering |
|
HTML Rendering |
|
UI Framework Surfaces |
UI Hello World, UI Choice, UI Sections, UI HTML Viewer, UI World View |
Input Handling / Refresh Behavior / Screen Update 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/.