mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-07 20:26:44 +01:00
wip: mrr
This commit is contained in:
parent
6c3a0964ec
commit
7271081fc9
10 changed files with 119 additions and 296 deletions
|
|
@ -1,9 +1,15 @@
|
|||
use crate::*;
|
||||
use crate::{dsl::*, input::*, tui::TuiIn};
|
||||
use crossterm::event::{Event, KeyEvent, KeyCode, KeyModifiers, KeyEventKind, KeyEventState};
|
||||
use std::cmp::Ordering;
|
||||
|
||||
#[test] fn test_subcommand () -> Usually<()> {
|
||||
struct Test { keys: InputMap<(), Ast> }
|
||||
#[derive(Debug)] struct Event(crossterm::event::Event);
|
||||
impl Eq for Event {}
|
||||
impl PartialEq for Event { fn eq (&self, other: &Self) -> bool { todo!() } }
|
||||
impl Ord for Event { fn cmp (&self, other: &Self) -> Ordering { todo!() } }
|
||||
impl PartialOrd for Event { fn partial_cmp (&self, other: &Self) -> Option<Ordering> { None } }
|
||||
struct Test { keys: InputMap<Event, Ast> }
|
||||
|
||||
handle!(TuiIn: |self: Test, input|Ok(None));/*if let Some(command) = self.keys.command(self, input) {
|
||||
Ok(Some(true))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue