Raxol.Terminal.Integration.State (Raxol v2.0.1)
View SourceManages 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
@type t() :: %Raxol.Terminal.Integration.State{ buffer: any(), buffer_manager: Raxol.Terminal.Window.Manager.t(), config: Raxol.Terminal.Integration.Config.t(), cursor_manager: any(), height: non_neg_integer(), input: any(), io: Raxol.Terminal.IO.IOServer.t(), output: any(), renderer: Raxol.Terminal.Render.RenderServer.t(), scroll_buffer: Raxol.Terminal.Buffer.Scroll.t(), width: non_neg_integer(), window: any(), window_manager: Raxol.Terminal.Window.Manager.t() }
Functions
@spec cleanup(t()) :: :ok
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.
@spec new(non_neg_integer(), non_neg_integer(), map()) :: t()
Creates a new integration state with specified width, height, and config.
Renders the current state.
Resizes the terminal.
@spec update(t(), String.t()) :: t()
@spec update(t(), nil) :: t()
@spec update( t(), keyword() ) :: t()
Updates the integration state with new content.
Updates the renderer configuration.