output: collect tests; formatting
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
🪞👃🪞 2025-04-30 23:48:43 +03:00
parent 9fb5d2d9f7
commit 2b208e3c49
11 changed files with 219 additions and 198 deletions

View file

@ -3,7 +3,14 @@ use std::time::Duration;
use std::thread::{spawn, JoinHandle};
use crossterm::event::{poll, read};
#[derive(Debug, Clone)] pub struct TuiIn(pub Arc<AtomicBool>, pub Event);
#[derive(Debug, Clone)]
pub struct TuiIn(
/// Exit flag
pub Arc<AtomicBool>,
/// Input event
pub Event,
);
impl Input for TuiIn {
type Event = Event;
type Handled = bool;