This commit is contained in:
2025-01-16 23:47:34 +01:00
parent 6878777140
commit eeefd1f002
5 changed files with 183 additions and 77 deletions
+11 -8
View File
@@ -1,12 +1,15 @@
use osui::*;
fn main() {
let mut term = init().unwrap();
loop {
term.draw(app).unwrap();
}
}
fn main() -> osui::Result<()> {
utils::init()?;
fn app(frame: &mut Frame) {
frame.render("hi");
let (width, height) = crossterm::terminal::size()?;
let frame = Frame::new(width, height);
frame.draw(&"Hello?", Area::new())?;
utils::read()?;
utils::end()
}