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

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.