Raxol.Terminal.ANSI.TerminalState (Raxol v2.0.1)
View SourceManages terminal state operations for ANSI escape sequences.
Summary
Functions
Applies restored data to the emulator state.
Clears all saved states.
Clears the terminal state stack.
Gets the count of states in the state stack.
Gets the current state from the state stack.
Checks if the state stack is empty.
Gets the current state.
Gets the number of saved states.
Gets the current state stack.
Checks if there are any saved states.
Creates a new terminal state with default settings.
Pops a state from the state stack.
Pushes the current state onto the state stack.
Restores the most recently saved state.
Restores the most recently saved terminal state from the state stack. Returns the restored state and the updated stack.
Saves the current state.
Saves the current terminal state to the state stack.
Updates the current state.
Updates the state stack.
Types
@type state_stack() :: [map()]
@type t() :: %Raxol.Terminal.ANSI.TerminalState{ current_state: map(), max_saved_states: integer(), saved_states: [map()], state_stack: state_stack() }
Functions
Applies restored data to the emulator state.
Clears all saved states.
Clears the terminal state stack.
Gets the count of states in the state stack.
Gets the current state from the state stack.
Checks if the state stack is empty.
Gets the current state.
Gets the number of saved states.
Gets the current state stack.
Checks if there are any saved states.
Creates a new terminal state with default settings.
Pops a state from the state stack.
Pushes the current state onto the state stack.
Restores the most recently saved state.
Restores the most recently saved terminal state from the state stack. Returns the restored state and the updated stack.
Saves the current state.
Saves the current terminal state to the state stack.
Updates the current state.
Updates the state stack.