Files
komp_ac/client/src/tui/terminal/event_reader.rs
filipriec a0467d17a8 cleanup
2025-04-18 21:11:49 +02:00

17 lines
269 B
Rust

// src/tui/terminal/event_reader.rs
use crossterm::event::{self, Event};
use anyhow::Result;
pub struct EventReader;
impl EventReader {
pub fn new() -> Self {
Self
}
pub fn read_event(&self) -> Result<Event> {
Ok(event::read()?)
}
}