Add cursor to textarea

This commit is contained in:
2025-10-15 18:06:45 +08:00
parent 8142d542f6
commit a776e55187
8 changed files with 109 additions and 42 deletions

View File

@@ -1,14 +1,7 @@
use std::any::Any;
mod main_view;
use crossterm::event::{Event, KeyEvent};
pub mod main_view;
#[derive(Debug, Clone, Copy)]
pub enum AppStatus {
Running,
Exiting,
Input
}
pub use main_view::MainView;
pub trait View {
fn handle_input(&mut self, event: &Event) -> color_eyre::Result<()>;