few changes

This commit is contained in:
2025-01-17 01:01:14 +01:00
parent eeefd1f002
commit a6472f8e2e
4 changed files with 43 additions and 56 deletions
+10 -9
View File
@@ -1,15 +1,16 @@
use osui::*;
fn main() -> osui::Result<()> {
utils::init()?;
let con = console::init()?;
let (width, height) = crossterm::terminal::size()?;
loop {
con.draw(|frame| -> Result<()> {
frame.draw(&"testing", Area::center())?;
frame.draw(&"\x1b[32mX\x1b[0m", Area::center_x())?;
frame.draw(&"\x1b[31mY\x1b[0m", Area::center_y())?;
Ok(())
})?;
}
let frame = Frame::new(width, height);
frame.draw(&"Hello?", Area::new())?;
utils::read()?;
utils::end()
console::end()
}