Expand description
Terminal rendering module
Provides terminal rendering abstractions for braille grids using ratatui and crossterm. Extracted and adapted from crabmusic/src/rendering/mod.rs
§Examples
use dotmax::{BrailleGrid, TerminalRenderer};
let mut renderer = TerminalRenderer::new().expect("Failed to initialize terminal");
let mut grid = BrailleGrid::new(80, 24).expect("Failed to create grid");
// Set some dots
grid.set_dot(10, 10).expect("Failed to set dot");
// Render to terminal
renderer.render(&grid).expect("Failed to render");
// Clean up
renderer.cleanup().expect("Failed to cleanup");Structs§
- Terminal
Capabilities - Terminal capabilities information
- Terminal
Renderer - Terminal renderer for braille grids
Enums§
- Terminal
Type - Terminal type detection for viewport handling
Traits§
- Terminal
Backend - Terminal backend abstraction