uncurses-ratatui
A ratatui Backend that renders through
uncurses. Write your UI with ratatui widgets and let uncurses
diff frames and ship the minimal bytes. A single UncursesBackend wraps a
Screen and drives rendering, input, and the raw-mode lifecycle. Backend event
reads are pure, like raw Screen reads: call observe_event to keep
capability tracking alive, or skip it and reads still work.
Usage
try_init() gives you a ratatui terminal wired to uncurses; restore() puts
the terminal back. In between, draw() renders widgets and
backend_mut().read_event() pulls input.
use Paragraph;
use ;
Backend event reads are pure, like raw Screen reads: call observe_event to
keep capability tracking alive, or skip it and reads still work.
That's the shape of it; the full API and guides live at uncurses.org.
Install
Not on crates.io yet, so depend on it straight from git:
[]
= { = "https://github.com/aymanbagabas/uncurses" }
= "0.30"
Features mirror the core crate: unicode-rs (default), icu, and runtime-agnostic
async for event_stream() with no tokio dependency.
Credits
Built on ratatui and uncurses, which in turn tips its hat to ncurses, ultraviolet, and colorprofile.
License
MIT. See LICENSE.