defmodule RaxolLiveView do @moduledoc """ Phoenix LiveView integration for Raxol terminal buffers. Renders terminal UIs in web browsers with real-time updates, keyboard/mouse event translation, and themeable CSS. ## Modules * `Raxol.LiveView.TerminalBridge` -- buffer-to-HTML conversion with run-length encoding, diff highlighting, and inline/class style output. * `Raxol.LiveView.InputAdapter` -- translates browser keydown events into `Raxol.Core.Events.Event` structs. * `Raxol.LiveView.TEALive` -- a Phoenix LiveView that hosts a TEA app (requires `phoenix_live_view`). * `Raxol.LiveView.TerminalComponent` -- a Phoenix LiveComponent that renders a buffer with theme support (requires `phoenix_live_view`). * `Raxol.LiveView.Themes` -- built-in color themes and CSS custom property generation. ## Quick start defmodule MyAppWeb.TerminalLive do use MyAppWeb, :live_view alias Raxol.LiveView.TerminalBridge def mount(_params, _session, socket) do buffer = Raxol.Core.Buffer.create_blank_buffer(80, 24) {:ok, assign(socket, buffer: buffer)} end def render(assigns) do ~H\"\"\"