Files
LLeMbas-TTY/termwiz/src/render/mod.rs
T
Wez Furlong 5d360ae365 termwiz: Remove anyhow::Result from public API
It's been replaced with an opaque termwiz error type instead.

This is a bit of a more conservative approach than that in (refs: #407)
and has less of an impact on the surrounding code, which appeals to
me from a maintenance perspective.

refs: #406
refs: #407
2021-01-08 00:32:30 -08:00

9 lines
212 B
Rust

pub mod terminfo;
#[cfg(windows)]
pub mod windows;
pub trait RenderTty: std::io::Write {
/// Returns the (cols, rows) for the terminal
fn get_size_in_cells(&mut self) -> crate::Result<(usize, usize)>;
}