class RatatuiRuby::Error::Invariant
State invariant violation.
The library has rules about valid state transitions. Calling methods in the wrong order or state breaks invariants.
This error signals you violated a state machine contract. The program state doesn’t allow this operation right now.
To resolve, check ‘terminal_active?` or restructure the code to ensure methods are called in the expected order.
Example
RatatuiRuby.init_terminal RatatuiRuby.init_terminal # => raises Error::Invariant