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

@ -1,6 +1,12 @@
use crate::prelude::*;
use super::Mixer;
impl HandleInput for Mixer {
fn handle (&mut self, event: &Event) -> Result<(), Box<dyn Error>> {
handle(self, event)
}
}
pub fn handle (state: &mut Mixer, event: &Event) -> Result<(), Box<dyn Error>> {
if let Event::Input(crossterm::event::Event::Key(event)) = event {