Raxol.Terminal.Mode.Manager (Raxol v0.5.0)

View Source

Manages terminal modes for the terminal emulator.

Summary

Functions

Gets the mode manager from an emulator.

Gets all set modes.

Checks if a mode is set.

Creates a new mode manager.

Resets all modes.

Resets a mode in the mode manager.

Restores previously saved modes.

Saves the current modes.

Sets a mode in the mode manager.

Updates the mode manager in an emulator.

Types

t()

@type t() :: %Raxol.Terminal.Mode.Manager{modes: %{required(atom()) => boolean()}}

Functions

get_manager(emulator)

@spec get_manager(Raxol.Terminal.Emulator.t()) :: t()

Gets the mode manager from an emulator.

get_set_modes(manager)

@spec get_set_modes(t()) :: [atom()]

Gets all set modes.

mode_set?(manager, mode)

@spec mode_set?(t(), atom()) :: boolean()

Checks if a mode is set.

new()

@spec new() :: t()

Creates a new mode manager.

reset_all_modes(manager)

@spec reset_all_modes(t()) :: t()

Resets all modes.

reset_mode(manager, mode)

@spec reset_mode(t(), atom()) :: t()

Resets a mode in the mode manager.

restore_modes(manager)

@spec restore_modes(t()) :: t()

Restores previously saved modes.

save_modes(manager)

@spec save_modes(t()) :: t()

Saves the current modes.

set_mode(manager, mode, value)

@spec set_mode(t(), atom(), boolean()) :: t()

Sets a mode in the mode manager.

update_manager(emulator, manager)

@spec update_manager(Raxol.Terminal.Emulator.t(), t()) :: Raxol.Terminal.Emulator.t()

Updates the mode manager in an emulator.