Exception: RatatuiRuby::Error::Terminal
- Inherits:
-
RatatuiRuby::Error
- Object
- StandardError
- RatatuiRuby::Error
- RatatuiRuby::Error::Terminal
- 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.}"
end
– SPDX-SnippetEnd ++