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/commands/command.ex
defmodule Raxol.Terminal.Commands.Command do
@moduledoc """
Defines the structure for terminal commands.
"""
defstruct [
:history,
:current,
:max_history,
:command_buffer,
:history_index,
:last_key_event,
:command_state
]
@type t :: %__MODULE__{
history: [String.t()],
current: String.t() | nil,
max_history: non_neg_integer(),
command_buffer: String.t(),
history_index: integer(),
last_key_event: any(),
command_state: any()
}
end