class RatatuiRuby::Terminal

Terminal object for managing terminal lifecycle and rendering.

Instance-based API aligned with upstream Ratatui Terminal struct.

Example

terminal = RatatuiRuby::Terminal.new
terminal.draw { |frame| ... }
terminal.restore

Terminal configuration and viewport settings.

Your app needs to choose how it occupies the terminal. Fullscreen apps take over the whole screen and clear on exit. Inline apps run in a fixed region and persist in scrollback. Configuring this manually is error-prone.

This module handles the choice. It defines viewport modes and their parameters.

@see Terminal::Viewport