Packages

Terminal emulation and driver infrastructure for Raxol. ANSI parsing, screen buffers, command processing, cursor management, input handling, session management, and termbox2 NIF integration.

Current section

Files

Jump to
raxol_terminal lib raxol terminal buffer content.ex
Raw

lib/raxol/terminal/buffer/content.ex

defmodule Raxol.Terminal.Buffer.Content do
@moduledoc """
Compatibility adapter for buffer content operations.
Forwards calls to Raxol.Terminal.ScreenBuffer.Operations.
"""
alias Raxol.Terminal.ScreenBuffer.Operations
@doc """
Writes content at a specific position in the buffer.
"""
@spec write_at(
term(),
non_neg_integer(),
non_neg_integer(),
String.t(),
map()
) :: term()
def write_at(buffer, x, y, text, style \\ %{}) do
Operations.write_text(buffer, x, y, text, style)
end
end