Expand description
Easy, lightweight and feature rich TUI library for rust.
§Features
- Lightweight
- User friendly API
- Render loop
- Mouse support
- Multiple widgets
§Get started
§Adding karsa as a dependency
[dependencies]
karsa = "0.1.2"
§Create a box with text and a title
use karsa::renderloop::run;
use karsa::widgets::{text::Text, widgetbox::WidgetBox};
use std::io;
fn main() -> io::Result<()> {
let text = Text::builder()
.with_content("Hello from\nkarsa\n!".to_string())
.build();
let widgetbox = WidgetBox::new(text, None, None, Some("Title".to_string()));
run(widgetbox)?;
Ok(())
}
This crate is in (very) early stage and might be subject to major API
changes