Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Examples

To run an example, use zig build <exaple name>, e.g. zig build demo.

All examples were recorded using VHS. Corresponding tapes can be found in the images folder.

Selecting a Backend

To select a backend in the examples, add -Dbackend=<backend name> to zig build command. For example:

zig build demo -Dbackend=crossterm

See Backends for more info.

Simple demo showcasing the library capabilities.

VHS recording

Demo gif

256 bit palette

VHS recording

Palette gif

Radio buttons and multiselect checkboxes

VHS recording

Checkboxes gif

Updating UI from another thread via scheduleTask

VHS recording

Threads gif

Simple user input processing

VHS recording

Input gif

How to handle key presses using a standalone function

VHS recording

Event Handler gif

How to implement a custom widget using FPS counter as an example. Can be used to debug Tuile event loop.

VHS recording

FPS Counter gif