Raxol.Components.Terminal.Emulator (Raxol v0.2.0)

View Source

Terminal emulator component wrapping the core emulator logic.

Summary

Functions

Gets the visible content from the UI component's state.

Handles terminal resize events. TODO: Implement proper resizing by delegating to CoreEmulator or ScreenBuffer

Initializes a new terminal emulator component state.

Processes input and updates terminal state by delegating to the core emulator.

Types

emulator_state()

@type emulator_state() :: %{core_emulator: Raxol.Terminal.Emulator.t()}

Functions

get_visible_content(state)

Gets the visible content from the UI component's state.

handle_resize(arg, state)

Handles terminal resize events. TODO: Implement proper resizing by delegating to CoreEmulator or ScreenBuffer

init()

Initializes a new terminal emulator component state.

process_input(input, state)

Processes input and updates terminal state by delegating to the core emulator.