Crates.io | osui |
lib.rs | osui |
version | 0.0.7 |
source | src |
created_at | 2024-09-17 18:51:56.381376 |
updated_at | 2024-11-30 05:48:22.16328 |
description | A rsx TUI library |
homepage | |
repository | https://github.com/osui-rs/osui |
max_upload_size | |
id | 1377854 |
size | 194,502 |
OSUI is a customizable terminal user interface (TUI) library written in Rust. It provides a set of components and rsx to build interactive command-line interfaces with ease.
cargo add osui
Here’s a simple example of how to create a basic UI with OSUI:
use osui::prelude::*;
fn main() {
run(&mut rsx! {
text { "Hello, World!" }
});
}
Credit to priz.js (discord) for the idea of using C for multithreading
Contributions are welcome! If you have suggestions or improvements, feel free to submit a pull request or open an issue.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.