Exception: RatatuiRuby::Error::Terminal

Inherits:
RatatuiRuby::Error show all
Defined in:
lib/ratatui_ruby.rb

Overview

Operational failure during terminal I/O.

Terminals are finnicky. I/O can fail. Backends can crash. These are runtime problems outside your control.

This error signals the terminal operation itself failed. The library tried to do something with the terminal and couldn’t.

Catch this to handle terminal failures gracefully.

Example

– SPDX-SnippetBegin SPDX-FileCopyrightText: 2026 Kerrick Long SPDX-License-Identifier: MIT-0 ++

begin
  RatatuiRuby.init_terminal
rescue RatatuiRuby::Error::Terminal => e
  puts "Terminal failed: #{e.message}"
end

– SPDX-SnippetEnd ++