This commit is contained in:
2026-03-17 10:25:47 +00:00
parent 1f6822d497
commit cab106aa6b
4 changed files with 1602 additions and 10 deletions

View File

@@ -1,3 +1,17 @@
fn main() -> Result<(), ()> {
Ok(())
use std::time::Duration;
use ratatui::layout::{self, Constraint, Layout};
fn main() -> Result<(), Box<dyn std::error::Error>> {
ratatui::run(|terminal| {
loop {
terminal.draw(|frame| {
let layout = frame.area().layout_vec(&Layout::horizontal([
Constraint::Percentage(50),
Constraint::Percentage(50),
]));
frame.render_widget("Hello World!", layout[1])
})?;
}
})
}