mod cells;
pub mod clipboard;
mod detect;
mod notify;
mod pixels;
mod probe;
pub use cells::CellBackend;
pub use detect::{background, detect};
pub use notify::{Notice, sequence as notification, terminal_names};
pub use pixels::{Bleed, DEFAULT_QUOTA, PixelBackend, Placement, Smooth, row_key};
pub use probe::{Env, Multiplexer, Tier, select_tier};
use std::io::{self, Write};
use std::time::{Duration, Instant};
use cellix_render::{Grid, Rect};
pub trait Backend {
fn present(&mut self, grid: &Grid, out: &mut dyn Write) -> io::Result<()>;
fn scroll(
&mut self,
_from: &Grid,
_to: &Grid,
_area: Rect,
_rows: i32,
_out: &mut dyn Write,
) -> io::Result<()> {
Ok(())
}
fn gliding(&self) -> Option<Duration> {
None
}
fn glide(&mut self, _now: Instant, _out: &mut dyn Write) -> io::Result<()> {
Ok(())
}
fn settle(&mut self) {}
fn invalidate(&mut self);
}