Skip to main content

Crate termgrid_core

Crate termgrid_core 

Source
Expand description

termgrid-core

A deterministic, terminal-like grid rendering core built around two ideas:

  1. Producers emit structured draw ops, not raw ANSI.
  2. Glyph display width is a policy, captured in a render profile (registry), not a guess.

This crate purposely stays small and unopinionated about IPC and higher-level engine semantics.

Re-exports§

pub use damage::Damage;
pub use damage::Rect;
pub use grid::Cell;
pub use grid::Grid;
pub use ops::BlitCell;
pub use ops::BoxCharset;
pub use ops::Frame;
pub use ops::RenderOp;
pub use ops::TruncateMode;
pub use registry::GlyphInfo;
pub use registry::GlyphRegistry;
pub use registry::RenderProfile;
pub use render::RenderError;
pub use render::Renderer;
pub use search::fuzzy_match_positions_graphemes;
pub use search::fuzzy_match_positions_graphemes_latest;
pub use search::fuzzy_match_positions_graphemes_v1;
pub use search::match_positions_graphemes;
pub use style::Style;
pub use text::apply_highlight;
pub use text::clip_to_cells_spans;
pub use text::clip_to_cells_text;
pub use text::ellipsis_to_cells_spans;
pub use text::ellipsis_to_cells_text;
pub use text::measure_cells_spans;
pub use text::measure_cells_text;
pub use text::normalize_spans;
pub use text::spans_plain_text;
pub use text::wrap_spans_wordwise;
pub use text::Span;
pub use text::Spans;
pub use text::WrapOpts;

Modules§

ansi
damage
Damage tracking for incremental terminal rendering.
grid
ops
registry
render
search
Generic search helpers.
style
text
Styled text utilities.