module RatatuiRuby::Buffer

Buffer primitives for terminal cell inspection.

Widgets render to an intermediate buffer, not directly to the terminal. Testing and debugging require access to buffer state.

This module mirrors ratatui::buffer and provides query methods for inspecting buffer contents, converting between coordinates and indices, and retrieving individual cells.

Use it in tests to verify rendered output or in debugging to inspect state.