dapplication 0.7.1

Ticket management systems for solo players.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use color_eyre::Result;
use ratatui::Frame;
use ratatui::crossterm::event::KeyCode;
pub trait TerminalInputPort {
    fn read_key(&self) -> Result<Option<KeyCode>>;
    fn mode_inquery(&mut self, frame: &mut Frame) -> Result<()>;
    fn mode_normal(&mut self, frame: &mut Frame) -> Result<()>;
    fn mode_amend(&mut self, frame: &mut Frame) -> Result<()>;
    fn mode_raise(&mut self, frame: &mut Frame) -> Result<()>;
    fn mode_notification(&mut self, frame: &mut Frame) -> Result<()>;
    fn next_row(&mut self) -> Result<()>;
    fn previous_row(&mut self) -> Result<()>;

    fn handle_input(&mut self, key: KeyCode) -> Result<()>;
    fn submit(&mut self) -> Result<()>;

    fn switch_display_guide(&mut self);
}