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 title(&self) -> Option<String>;
fn snapshot_ansi(&self) -> String;
}