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::Handle, ui::common::traits::EventProcessStatus};
use super::Markdown;

pub trait MarkdownEvents {
    fn on_external_link(&mut self, _handle: Handle<Markdown>, _link: &str) -> EventProcessStatus {
        EventProcessStatus::Ignored
    }
    fn on_backspace_navigation(&mut self, _handle: Handle<Markdown>) -> EventProcessStatus {
        EventProcessStatus::Ignored
    }
}

#[derive(Clone)]
pub(crate) enum Data {
    BackEvent,
    LinkClickEvent(String),
}

#[derive(Clone)]
pub(crate) struct EventData {
    pub(crate) event_type: Data
}