pub mod alacritty;
use ratatui::style::{Color, Modifier};
pub struct RenderCell {
pub c: char,
pub fg: Color,
pub bg: Color,
pub mods: Modifier,
}
#[derive(Clone, Copy)]
pub struct Cursor {
pub x: u16,
pub y: u16,
pub visible: bool,
}
pub trait VtEngine: Send {
fn advance(&mut self, bytes: &[u8]);
fn resize(&mut self, cols: u16, rows: u16);
fn cursor(&self) -> Cursor;
fn for_each_cell(&self, f: &mut dyn FnMut(u16, u16, RenderCell));
fn detection_text(&self, n: u16) -> String;
fn visible_rows(&self) -> Vec<String>;
fn title(&self) -> Option<String>;
fn scroll(&mut self, delta: i32);
fn scroll_to_top(&mut self);
fn scroll_to_bottom(&mut self);
fn scroll_offset(&self) -> usize;
fn history_len(&self) -> usize;
fn alt_screen(&self) -> bool;
fn mouse_report(&self) -> bool;
fn sgr_mouse(&self) -> bool;
fn snapshot_ansi(&self) -> String;
}