mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-03-13 12:10:44 +01:00
it's a song!
This commit is contained in:
parent
0d8503cc05
commit
5d0dc40fdc
11 changed files with 846 additions and 828 deletions
|
|
@ -1,5 +1,4 @@
|
|||
use ::{std::sync::{Arc, RwLock}, ratatui::style::Color,
|
||||
tengri::{*, input::*, output::*}, tengri_tui::*};
|
||||
use ::{std::{io::stdout, sync::{Arc, RwLock}}, ratatui::style::Color, tengri::*};
|
||||
tui_main!(State { cursor: 10, ..Default::default() });
|
||||
namespace!(State: bool {});
|
||||
namespace!(State: u16 {});
|
||||
|
|
@ -25,7 +24,7 @@ fn draw_example (state: &State, to: &mut TuiOut) {
|
|||
let title = Tui::bg(Color::Rgb(60, 10, 10), Push::Y(1, Align::n(heading)));
|
||||
let code = Tui::bg(Color::Rgb(10, 60, 10), Push::Y(2, Align::n(format!("{}", src))));
|
||||
//let content = ;//();//Tui::bg(Color::Rgb(10, 10, 60), View(state, CstIter::new(src)));
|
||||
state.size.of(Bsp::s(title, Bsp::n(code, state.view(to, &src).unwrap()))).draw(to)
|
||||
state.size.of(Bsp::s(title, Bsp::n(code, state.understand(to, &src).unwrap()))).draw(to)
|
||||
}
|
||||
impl Action {
|
||||
const BINDS: &'static str = stringify! { (@left prev) (@right next) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue