appcui 0.4.8

A feature-rich and cross-platform TUI/CUI framework for Rust, enabling modern terminal-based applications on Windows, Linux, and macOS. Includes built-in UI components like buttons, menus, list views, tree views, checkboxes, and more. Perfect for building fast and interactive CLI tools and text-based interfaces.
Documentation
use crate::system::SystemEvent;
use crate::backend::utils::win32;
use crate::backend::SystemEventReader;


pub(crate) struct Input {
    console: win32::Console,
}

impl Input {
    pub(super) fn new(console: win32::Console) -> Self {
        Self { console }
    }
}

impl SystemEventReader for Input {
    fn read(&mut self) -> Option<SystemEvent> {
        self.console.read_event()
    }
}