Raxol.Terminal.State (Raxol v0.5.0)
View SourceProvides state management for the terminal emulator. This module handles operations like creating new states, saving and restoring states, and managing state transitions.
Summary
Functions
Gets the current cursor position.
Gets the current screen buffer.
Creates a new terminal state with the specified dimensions and limits.
Restores the most recently saved state.
Saves the current state.
Sets the cursor position.
Sets the screen buffer.
Functions
@spec get_cursor_position(map()) :: {non_neg_integer(), non_neg_integer()}
Gets the current cursor position.
@spec get_screen_buffer(map()) :: Raxol.Terminal.ScreenBuffer.t()
Gets the current screen buffer.
@spec new( non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer() ) :: map()
Creates a new terminal state with the specified dimensions and limits.
Restores the most recently saved state.
Saves the current state.
@spec set_cursor_position(map(), non_neg_integer(), non_neg_integer()) :: map()
Sets the cursor position.
@spec set_screen_buffer(map(), Raxol.Terminal.ScreenBuffer.t()) :: map()
Sets the screen buffer.