keyboard input
This commit is contained in:
@@ -14,16 +14,16 @@ To use `osui` in your Rust project, add the following to your `Cargo.toml`:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
osui = "^0.0.1"
|
||||
osui = "^0.0.2"
|
||||
```
|
||||
|
||||
```rust
|
||||
use osui::{self, ui};
|
||||
use osui::{self, render_frame, ui};
|
||||
|
||||
fn main() {
|
||||
osui::clear();
|
||||
let mut txt = ui::text("hello, world!");
|
||||
txt.render();
|
||||
let txt = ui::text("Hello World!");
|
||||
render_frame(vec![txt.clone()]);
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user