Raxol.UI.Components.Terminal (Raxol v2.6.0)

View Source

A terminal emulator component that wraps EmulatorLite to display a fully functional terminal within the UI.

Renders the emulator's screen buffer as styled text elements, converting cell-level character/style data to the standard %{type: :text, content: ..., style: ...} render format.

Summary

Types

t()

@type t() :: %Raxol.UI.Components.Terminal{
  emulator: Raxol.Terminal.EmulatorLite.t() | nil,
  height: non_neg_integer(),
  id: any(),
  scroll_offset: integer(),
  style: map(),
  width: non_neg_integer()
}

Functions

broadcast(msg)

command(cmd)

schedule(msg, delay)