Raxol.Terminal.Emulator.SafeEmulator (Raxol v2.0.1)
View SourceEnhanced terminal emulator with comprehensive error handling. Refactored to use functional error handling patterns instead of try/catch.
Summary
Functions
Performs checkpoint/restore operations.
Returns a specification to start this module under a supervisor.
Gets error statistics and health status.
Gets the current terminal state with error recovery.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Safely handles ANSI sequences with fallback.
Safely processes input with validation and error recovery.
Triggers recovery mechanism manually.
Safely resizes the terminal with validation.
Types
@type error_stats() :: %{ total_errors: non_neg_integer(), errors_by_type: map(), last_error: {DateTime.t(), term()} | nil, recovery_attempts: non_neg_integer() }
Functions
Performs checkpoint/restore operations.
Returns a specification to start this module under a supervisor.
See Supervisor.
Gets error statistics and health status.
Gets the current terminal state with error recovery.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Safely handles ANSI sequences with fallback.
Safely processes input with validation and error recovery.
Triggers recovery mechanism manually.
Safely resizes the terminal with validation.