Raxol.Terminal.State.Manager (Raxol v0.5.0)
View SourceManages the overall state of the terminal, including mode settings, cursor state, and terminal dimensions.
Summary
Functions
Gets the current cursor position.
Gets the cursor style.
Gets the cursor visibility state.
Gets the current terminal dimensions.
Gets the terminal icon name.
Gets the value of a terminal mode.
Gets the terminal title.
Creates a new terminal state manager instance.
Resets the terminal state to default values.
Restores the saved cursor state.
Saves the current cursor state.
Sets the cursor position.
Sets the cursor style.
Sets the cursor visibility.
Sets the terminal dimensions.
Sets the terminal icon name.
Sets a terminal mode value.
Sets the terminal title.
Triggers the terminal bell.
Types
@type bell_style() :: :normal | :visible | :audible | :urgent
@type bell_urgent_style() :: :normal | :visible | :audible | :urgent
@type cursor_style() :: :block | :underline | :bar
@type mode() :: atom()
@type mode_value() :: boolean()
@type t() :: %Raxol.Terminal.State.Manager{ bell_audible: boolean(), bell_duration: non_neg_integer(), bell_enabled: boolean(), bell_pitch: non_neg_integer(), bell_style: bell_style(), bell_urgent: boolean(), bell_urgent_active: boolean(), bell_urgent_audible: boolean(), bell_urgent_count: non_neg_integer(), bell_urgent_duration: non_neg_integer(), bell_urgent_last: DateTime.t() | nil, bell_urgent_max: non_neg_integer(), bell_urgent_pitch: non_neg_integer(), bell_urgent_style: bell_urgent_style(), bell_urgent_timeout: non_neg_integer(), bell_urgent_visible: boolean(), bell_urgent_volume: non_neg_integer(), bell_visible: boolean(), bell_volume: non_neg_integer(), cols: non_neg_integer(), cursor_style: cursor_style(), cursor_visible: boolean(), cursor_x: non_neg_integer(), cursor_y: non_neg_integer(), icon_name: String.t(), modes: %{required(mode()) => mode_value()}, rows: non_neg_integer(), saved_cursor: {non_neg_integer(), non_neg_integer()} | nil, scrollback_size: non_neg_integer(), title: String.t() }
Functions
Gets the current cursor position.
Gets the cursor style.
Gets the cursor visibility state.
Gets the current terminal dimensions.
Gets the terminal icon name.
Gets the value of a terminal mode.
Gets the terminal title.
Creates a new terminal state manager instance.
Resets the terminal state to default values.
Restores the saved cursor state.
Saves the current cursor state.
Sets the cursor position.
Sets the cursor style.
Sets the cursor visibility.
Sets the terminal dimensions.
Sets the terminal icon name.
Sets a terminal mode value.
Sets the terminal title.
Triggers the terminal bell.