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
Current section
Files
lib/raxol/terminal/supervisor.ex
defmodule Raxol.Terminal.Supervisor do
@moduledoc """
Supervisor for terminal-related processes.
"""
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
@impl true
def init(_init_arg) do
children = [
# Terminal Registry for managing terminal sessions
{Registry, keys: :unique, name: Raxol.Terminal.Registry},
# Dynamic Supervisor for terminal processes
{DynamicSupervisor,
name: Raxol.Terminal.DynamicSupervisor, strategy: :one_for_one},
# ANSI Processor for handling ANSI escape codes
Raxol.Terminal.ANSI.Processor,
# Terminal Manager for coordinating terminal sessions
{Raxol.Terminal.Manager, []}
]
Supervisor.init(children, strategy: :one_for_one)
end
end