Raxol.Terminal.Emulator.ModeOperations (Raxol Terminal v2.6.0)

Copy Markdown View Source

Mode operation functions extracted from the main emulator module. Handles terminal mode setting and resetting operations.

Summary

Functions

Resets a terminal mode using the mode manager.

Sets a terminal mode using the mode manager.

Types

emulator()

@type emulator() :: Raxol.Terminal.Emulator.t()

Functions

reset_mode(emulator, mode)

@spec reset_mode(emulator(), atom()) :: {:ok, emulator()} | {:error, term()}

Resets a terminal mode using the mode manager.

set_mode(emulator, mode)

@spec set_mode(emulator(), atom()) :: {:ok, emulator()} | {:error, term()}

Sets a terminal mode using the mode manager.