class RatatuiRuby::Error::Terminal

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

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