termix 0.0.3

TUI framework inspired by bubbletea.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fmt::Debug;

use crate::key::Key;

/// Init event and quit event is already defined.
#[derive(Clone, Debug)]
pub enum Event<CustomEvent>
where
    CustomEvent: Send + Debug,
{
    Init,
    Quit,
    Keyboard(Key),
    Custom(CustomEvent),
}