tui-pages 0.7.0

Coordination runtime for keyboard-driven, page-based TUI applications: input sequences, command resolution, focus, navigation, buffers, and panes.
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,
}