wip: ratatui

This commit is contained in:
🪞👃🪞 2024-06-05 15:40:26 +03:00
parent edc363c55b
commit fc7f6f5407
16 changed files with 485 additions and 243 deletions

View file

@ -19,9 +19,19 @@ pub use crossterm::{
QueueableCommand,
event::{self, KeyCode, KeyModifiers},
cursor::{self, MoveTo, Show, Hide},
terminal::{self, Clear, ClearType},
terminal::{
self,
Clear, ClearType,
EnterAlternateScreen, LeaveAlternateScreen,
enable_raw_mode, disable_raw_mode
},
style::*,
};
pub use ratatui::{
prelude::*,
widgets::WidgetRef,
//style::Stylize,
};
pub use jack::{
AsyncClient,
AudioIn,
@ -45,4 +55,8 @@ pub use jack::{
};
pub type BoxedProcessHandler = Box<dyn FnMut(&Client, &ProcessScope)-> Control + Send>;
pub type Jack<N> = AsyncClient<N, ClosureProcessHandler<BoxedProcessHandler>>;
pub use crate::engine::{Exitable, Event};
pub use crate::engine::{
Exitable,
HandleInput,
Event
};