Raxol.Terminal.State.Manager (Raxol v2.0.1)

View Source

State manager for terminal emulator state. Provides functions for managing modes, attributes, and state stack.

This is a compatibility wrapper that delegates to the actual StateManager implementation while maintaining the expected API for tests.

Summary

Functions

Clears the state stack.

Gets an attribute value from the emulator state.

Gets a mode value from the emulator state.

Gets the state stack.

Creates a new state manager instance.

Pops state from the state stack.

Pushes current state onto the state stack.

Resets state to initial values.

Sets an attribute value in the emulator state.

Sets a mode value in the emulator state.

Functions

clear_state_stack(emulator)

Clears the state stack.

get_attribute(emulator, attr_key)

Gets an attribute value from the emulator state.

get_mode(emulator, mode_key)

Gets a mode value from the emulator state.

get_state_stack(emulator)

Gets the state stack.

new()

Creates a new state manager instance.

pop_state(emulator)

Pops state from the state stack.

push_state(emulator)

Pushes current state onto the state stack.

reset_state(emulator)

Resets state to initial values.

set_attribute(emulator, attr_key, value)

Sets an attribute value in the emulator state.

set_mode(emulator, mode_key, value)

Sets a mode value in the emulator state.