Raxol.Terminal.Buffer.ScrollbackManager (Raxol v0.5.0)

View Source

Manages scrollback buffer for the terminal emulator.

Summary

Functions

Adds a line to the scrollback buffer.

Returns a specification to start this module under a supervisor.

Clears the scrollback buffer.

Gets a range of lines from the scrollback buffer.

Gets the current number of scrollback lines.

Creates a new scrollback manager.

Starts the scrollback manager process.

Types

t()

@type t() :: %Raxol.Terminal.Buffer.ScrollbackManager{
  current_lines: non_neg_integer(),
  limit: non_neg_integer(),
  lines: [[Raxol.Terminal.Buffer.Cell.t()]],
  max_lines: non_neg_integer()
}

Functions

add_line(scrollback_manager, line)

Adds a line to the scrollback buffer.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear(scrollback_manager)

Clears the scrollback buffer.

get_lines(scrollback_manager, start_line, count)

Gets a range of lines from the scrollback buffer.

get_scrollback_count(scrollback_manager)

Gets the current number of scrollback lines.

new()

@spec new() :: t()

Creates a new scrollback manager.

start_link()

Starts the scrollback manager process.