Packages

Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.

Current section

Files

Jump to
raxol lib raxol terminal buffer scrollback_behaviour.ex
Raw

lib/raxol/terminal/buffer/scrollback_behaviour.ex

defmodule Raxol.Terminal.Buffer.Scrollback.Behaviour do
@moduledoc """
Behaviour for terminal scrollback buffer.
"""
@callback new() :: any()
@callback add_line(any(), String.t()) :: any()
@callback get_lines(any()) :: [String.t()]
end