Raxol.Terminal.Buffer.BufferServer (Raxol v2.0.1)

View Source

Buffer server stub for test compatibility.

This module provides a GenServer-based interface for terminal buffer operations to maintain compatibility with legacy tests during the architecture transition.

Summary

Functions

Performs an atomic operation on the buffer.

Performs a batch of operations atomically.

Returns a specification to start this module under a supervisor.

Clears damage regions.

Flushes pending operations.

Gets a cell at the given coordinates.

Gets buffer content as string.

Gets damage regions that need repainting.

Gets buffer dimensions.

Gets memory usage information.

Gets buffer metrics.

Resizes the buffer.

Sets a cell at the given coordinates asynchronously.

Sets a cell at the given coordinates synchronously.

Stops the buffer server.

Functions

atomic_operation(pid, fun)

Performs an atomic operation on the buffer.

batch_operations(pid, operations)

Performs a batch of operations atomically.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear_damage_regions(pid)

Clears damage regions.

flush(pid)

Flushes pending operations.

get_cell(pid, x, y)

Gets a cell at the given coordinates.

get_content(pid)

Gets buffer content as string.

get_damage_regions(pid)

Gets damage regions that need repainting.

get_dimensions(pid)

Gets buffer dimensions.

get_memory_usage(pid)

Gets memory usage information.

get_metrics(pid)

Gets buffer metrics.

handle_manager_call(request, from, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_call/3.

handle_manager_cast(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.

handle_manager_info(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.

resize(pid, width, height)

Resizes the buffer.

set_cell(pid, x, y, cell)

Sets a cell at the given coordinates asynchronously.

set_cell_sync(pid, x, y, cell)

Sets a cell at the given coordinates synchronously.

start_link(init_opts \\ [])

stop(pid)

Stops the buffer server.