Real pixels in your terminal.
katui is a terminal UI library that draws apps, games and video as images through the kitty graphics protocol, from Rust, Python, Node.js, Go and C. Terminals without it get sixel images or quarter-block characters.
Install
- Rust
cargo add katui --features app- Python
pip install katui- Node.js
npm install @mattfillipe/katui- Go
go get github.com/h4ks-com/katui/bindings/go- C
- Download the header and libraries from the latest release.
Guides
- Getting started
Install katui, run a first app, and learn what happens when it starts.
- Pixel UI apps
Views, messages, widgets, layout, keyboard input and background work.
- Games
A fixed-step game loop, drawing with light, and held keys.
- Video
Play a file or a stream inside your app.
- HTML and markdown
Render documents as part of your view.
- Images in ratatui apps
Keep your ratatui widgets and add pixels next to them.
- Python
The same apps, documents and games from Python.
- C
The same apps, documents and games from C.
- Go
The same apps, documents and games from Go.
- Node.js
The same apps, documents and games from JavaScript and TypeScript.
- How katui works
The layers, and what happens between your
viewand the terminal. - Building, testing and publishing
The checks that keep the Rust, Python, C, Go and Node packages in step, and how a release ships.