Expand description
rg: a 2D pseudographic terminal library.
rg provides a grid of character cells with styled output, input handling, and double-buffered presentation via pluggable backends.
Re-exports§
pub use backend::Backend;pub use backend::Headless;pub use color::AnsiColor;pub use color::Color;pub use color::InvalidAnsiIndex;pub use event::Event;pub use event::KeyCode;pub use event::KeyEvent;pub use event::KeyModifiers;pub use event::MouseButton;pub use event::MouseEvent;pub use event::MouseEventKind;pub use grid::Grid;pub use grid::Pos;pub use grid::Rect;pub use grid::Size;pub use layout::HAlign;pub use layout::TextLayout;pub use layout::TextMetrics;pub use layout::VAlign;pub use style::CellModifier;pub use style::Style;pub use terminal::Terminal;pub use text::Line;pub use text::Span;pub use tile::Tile;
Modules§
- backend
- Pluggable rendering backends. Pluggable rendering backends.
- color
- Styling types for character cells.
- event
- Input event system.
- grid
- The grid container.
- layout
- Text layout: measurement, word wrapping, and bounded alignment.
- style
- Text styling and modifiers.
- terminal
- Stateful terminal management and double-buffering.
- text
- Styled text primitives:
SpanandLine. - tile
- The atomic drawable unit (glyph, style, sub-cell offsets). Fundamental unit of the grid: a single drawable tile.