Skip to content

pseudocc/prism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRISM

Prism is a pure zig terminal manipulation library for Linux to build TUI programs.

Quick Start

Enter the alternate screen, enable the raw mode, turn on mouse tracking, take a look at the examples/event.zig.

examples/event.zig

You may also want to run this example, which is pretty simple:

zig build examples
zig-out/bin/event

You could have an eye on examples/widget.zig, this is an example to manage a simple widget (redraw after state changes).

Prism Prompt

An extension library is still WIP, which is inspired by SBoudrias/Inquirer.js. This requires you to stay in canonical mode, and provides you a better UI with in-time validation.

examples/event.zig

References

Terminal Guide

Entering raw mode

Nonsense

I was thinking of creating a UI module that provides layout managements and common widgets, but it would be pretty complicated for the users, and I would like to make things simple, so that plan was dropped.

About

TUI library for Zig programming language.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages