Readme update #40

This commit is contained in:
2026-01-31 17:48:51 +01:00
parent 8ebef06808
commit dc2810b6d8
+10 -8
View File
@@ -17,21 +17,23 @@
</p>
<p align="center">
<b>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.</b>
<b>OSUI is a customizable terminal user interface (TUI) library written in Rust.</b>
</p>
```rust
use osui::prelude::*;
fn main() -> std::io::Result<()> {
let screen = Screen::new();
rsx! {
"Hello, World"
pub fn main() {
let engine = Console::new();
engine.run(App {}).expect("Failed to run engine");
}
.draw(&screen);
screen.run()
#[component]
fn App(cx: &Arc<Context>) -> View {
rsx! {
"Hello World"
}
.view(&cx)
}
```