mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-04-28 05:20:14 +02:00
20 lines
458 B
Plaintext
20 lines
458 B
Plaintext
use tek::*;
|
|
use std::sync::{Arc, RwLock};
|
|
|
|
fn main () -> Usually<()> {
|
|
Tui::run(Arc::new(RwLock::new(BspDemo(Default::default()))))?;
|
|
Ok(())
|
|
}
|
|
|
|
pub struct BspDemo<E: Engine>(std::marker::PhantomData<E>);
|
|
|
|
render!(<Tui>|self:BspDemo<Tui>|Fill::wh(Align::c(
|
|
Bsp::n(Bsp::s(Bsp::e(Bsp::w("00", "11"), "22"), "33"), "44")
|
|
)));
|
|
|
|
impl Handle<Tui> for BspDemo<Tui> {
|
|
fn handle (&mut self, from: &TuiInput) -> Perhaps<bool> {
|
|
Ok(None)
|
|
}
|
|
}
|