tui-pages 0.7.2

Core for TUI apps with multiple pages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::input::KeyChord;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct InputHint<A> {
    pub key: KeyChord,
    pub action: A,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum PipelineResponse<A> {
    Execute(A),
    Type(KeyChord),
    Wait(Vec<InputHint<A>>),
    Cancel,
}