Raxol.Terminal.Integration.State (Raxol v0.4.0)

View Source

Manages the state of the integrated terminal system.

Summary

Functions

Gets the current command history from the terminal state.

Gets the current configuration from the terminal state.

Gets the current cursor position from the terminal state.

Gets the current memory usage from the terminal state.

Gets the current scroll position from the terminal state.

Gets the current visible content from the terminal state.

Creates a new terminal state with the specified dimensions.

Updates the terminal state with new components.

Types

t()

@type t() :: %Raxol.Terminal.Integration.State{
  buffer_manager: Raxol.Terminal.Cursor.Manager.t(),
  command_history: Raxol.Terminal.Commands.History.t(),
  config: map(),
  cursor_manager: Raxol.Terminal.Cursor.Manager.t(),
  emulator: Raxol.Terminal.Emulator.t(),
  last_cleanup: integer(),
  renderer: Raxol.Terminal.Renderer.t(),
  scroll_buffer: Raxol.Terminal.Buffer.Scroll.t()
}

Functions

get_command_history(state)

Gets the current command history from the terminal state.

get_config(state)

Gets the current configuration from the terminal state.

get_cursor_position(state)

Gets the current cursor position from the terminal state.

get_memory_usage(state)

Gets the current memory usage from the terminal state.

get_scroll_position(state)

Gets the current scroll position from the terminal state.

get_visible_content(state)

Gets the current visible content from the terminal state.

new(width, height, config)

Creates a new terminal state with the specified dimensions.

update(state, updates)

Updates the terminal state with new components.