Raxol.Terminal.Integration.State (Raxol Terminal v2.6.0)

Copy Markdown View Source

Manages the state of the integrated terminal system.

Summary

Functions

Cleans up resources.

Gets the current memory usage.

Gets the current scroll position.

Gets the visible content from the current window.

Creates a new integration state with the given options.

Creates a new integration state with specified width, height, and config.

Renders the current state.

Resizes the terminal.

Updates the integration state with new content.

Updates the renderer configuration.

Types

t()

@type t() :: %Raxol.Terminal.Integration.State{
  buffer: any(),
  buffer_manager: Raxol.Terminal.Window.Manager.t() | nil | map(),
  config: Raxol.Terminal.Integration.Config.t() | nil | map(),
  cursor_manager: any(),
  height: integer(),
  input: any(),
  io: Raxol.Terminal.IO.IOServer.t() | nil,
  output: any(),
  renderer: Raxol.Terminal.Rendering.RenderServer.t() | nil | map(),
  scroll_buffer: Raxol.Terminal.Buffer.Scroll.t() | nil,
  width: integer(),
  window: any(),
  window_manager: module() | nil
}

Functions

cleanup(state)

Cleans up resources.

get_memory_usage(state)

Gets the current memory usage.

get_scroll_position(state)

Gets the current scroll position.

get_visible_content(state)

Gets the visible content from the current window.

new(opts \\ [])

Creates a new integration state with the given options.

new(width, height, config)

Creates a new integration state with specified width, height, and config.

render(state)

Renders the current state.

resize(state, width, height)

Resizes the terminal.

update(state, content)

Updates the integration state with new content.

update_renderer_config(state, config)

Updates the renderer configuration.