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
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