Guide API
Skip to main content

tvision_rs/screen/
mod.rs

1//! Screen-cell storage, the render back-buffer, and the cell diff.
2//!
3//! [`Cell`] is one character cell; [`DrawBuffer`] is a scratch row a view fills
4//! and blits; [`Buffer`] is the full in-memory screen grid that the whole view
5//! tree paints into each frame, then diffs against the previous frame so only
6//! changed cells reach the terminal. The [`snapshot`]
7//! module renders a `Buffer` to a deterministic golden string for tests.
8//!
9//! **Guide:** [Drawing & backends](../../../internals/drawing.html).
10
11mod buffer;
12mod cell;
13mod draw_buffer;
14pub mod snapshot;
15
16pub use buffer::Buffer;
17pub use cell::Cell;
18pub use draw_buffer::DrawBuffer;