mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-01-31 19:06:41 +01:00
refactor: extract dizzle
This commit is contained in:
parent
b0d2fad17b
commit
1344967f33
34 changed files with 372 additions and 2235 deletions
29
tui/src/lib.rs
Normal file
29
tui/src/lib.rs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#![feature(type_changing_struct_update)]
|
||||
#![feature(trait_alias)]
|
||||
#[cfg(test)] mod tui_test;
|
||||
mod tui_engine; pub use self::tui_engine::*;
|
||||
mod tui_content; pub use self::tui_content::*;
|
||||
pub use ::{tengri_input, tengri_output, ratatui, crossterm, palette, better_panic};
|
||||
pub(crate) use ::{
|
||||
dizzle::*,
|
||||
tengri_input::*,
|
||||
tengri_output::*,
|
||||
atomic_float::AtomicF64,
|
||||
std::{io::{stdout, Stdout}, sync::{Arc, RwLock, atomic::{AtomicBool, Ordering::*}}},
|
||||
better_panic::{Settings, Verbosity},
|
||||
palette::{*, convert::*, okhsl::*},
|
||||
ratatui::{
|
||||
prelude::{Color, Style, Buffer},
|
||||
style::Modifier,
|
||||
backend::{Backend, CrosstermBackend, ClearType},
|
||||
layout::{Size, Rect},
|
||||
buffer::Cell
|
||||
},
|
||||
crossterm::{
|
||||
ExecutableCommand,
|
||||
terminal::{EnterAlternateScreen, LeaveAlternateScreen, enable_raw_mode, disable_raw_mode},
|
||||
event::{Event, KeyEvent, KeyCode, KeyModifiers, KeyEventKind, KeyEventState},
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -1,39 +1,5 @@
|
|||
#![feature(type_changing_struct_update)]
|
||||
#![feature(trait_alias)]
|
||||
#[cfg(test)] mod tui_test;
|
||||
mod tui_engine; pub use self::tui_engine::*;
|
||||
mod tui_content; pub use self::tui_content::*;
|
||||
pub use ::{
|
||||
tengri_input,
|
||||
tengri_output,
|
||||
ratatui,
|
||||
crossterm,
|
||||
palette,
|
||||
better_panic
|
||||
};
|
||||
pub(crate) use ::{
|
||||
tengri_core::*,
|
||||
tengri_input::*,
|
||||
tengri_output::*,
|
||||
atomic_float::AtomicF64,
|
||||
std::{io::{stdout, Stdout}, sync::{Arc, RwLock, atomic::{AtomicBool, Ordering::*}}},
|
||||
better_panic::{Settings, Verbosity},
|
||||
palette::{*, convert::*, okhsl::*},
|
||||
ratatui::{
|
||||
prelude::{Color, Style, Buffer},
|
||||
style::Modifier,
|
||||
backend::{Backend, CrosstermBackend, ClearType},
|
||||
layout::{Size, Rect},
|
||||
buffer::Cell
|
||||
},
|
||||
crossterm::{
|
||||
ExecutableCommand,
|
||||
terminal::{EnterAlternateScreen, LeaveAlternateScreen, enable_raw_mode, disable_raw_mode},
|
||||
event::{Event, KeyEvent, KeyCode, KeyModifiers, KeyEventKind, KeyEventState},
|
||||
}
|
||||
};
|
||||
use crate::*;
|
||||
|
||||
#[cfg(feature = "dsl")] use tengri_dsl::*;
|
||||
#[cfg(feature = "dsl")]
|
||||
pub fn evaluate_output_expression_tui <'a, S> (
|
||||
state: &S, mut output: &mut TuiOut, expr: impl DslExpr + 'a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue