Raxol.Terminal.CommandExecutor (Raxol v0.2.0)
View SourceDEPRECATED: Handles the execution of parsed terminal commands.
This module is being replaced by Raxol.Terminal.Commands.Executor
and
various submodules within Raxol.Terminal.Commands.*
.
Existing functions are kept temporarily for backward compatibility or as placeholders during refactoring, but they primarily log warnings and delegate to the new modules where possible.
Summary
Functions
Clears a line or part of a line based on the mode parameter.
Clears the screen or a part of it based on the mode parameter.
Deletes lines at the current cursor position.
Executes a CSI (Control Sequence Introducer) command.
Executes a DCS (Device Control String) command.
Executes an OSC (Operating System Command).
Gets a parameter at a specific index from the params list.
Handles ANSI mode setting or resetting.
Handles DEC private mode setting or resetting.
Erase Display handler.
Erase Line handler.
Handles Sixel graphics.
Inserts blank lines at the current cursor position.
Parses a raw parameter string buffer into a list of integers or nil values.
Functions
@spec clear_line(Raxol.Terminal.Emulator.t(), integer()) :: Raxol.Terminal.Emulator.t()
Clears a line or part of a line based on the mode parameter.
DEPRECATED: Use Raxol.Terminal.Commands.Screen.clear_line/2 instead.
@spec clear_screen(Raxol.Terminal.Emulator.t(), integer()) :: Raxol.Terminal.Emulator.t()
Clears the screen or a part of it based on the mode parameter.
DEPRECATED: Use Raxol.Terminal.Commands.Screen.clear_screen/2 instead.
@spec delete_line(Raxol.Terminal.Emulator.t(), integer()) :: Raxol.Terminal.Emulator.t()
Deletes lines at the current cursor position.
DEPRECATED: Use Raxol.Terminal.Commands.Screen.delete_lines/2 instead.
@spec execute_csi_command( Raxol.Terminal.Emulator.t(), String.t(), String.t(), non_neg_integer() ) :: Raxol.Terminal.Emulator.t()
Executes a CSI (Control Sequence Introducer) command.
DEPRECATED: Use Raxol.Terminal.Commands.Executor.execute_csi_command/4 instead.
@spec execute_dcs_command( Raxol.Terminal.Emulator.t(), String.t(), String.t(), non_neg_integer(), String.t() ) :: Raxol.Terminal.Emulator.t()
Executes a DCS (Device Control String) command.
DEPRECATED: Use Raxol.Terminal.Commands.Executor.execute_dcs_command/5 instead.
@spec execute_osc_command(Raxol.Terminal.Emulator.t(), String.t()) :: Raxol.Terminal.Emulator.t()
Executes an OSC (Operating System Command).
DEPRECATED: Use Raxol.Terminal.Commands.Executor.execute_osc_command/2 instead.
@spec get_param([integer() | nil], pos_integer(), integer()) :: integer()
Gets a parameter at a specific index from the params list.
DEPRECATED: Use Raxol.Terminal.Commands.Parser.get_param/3 instead.
@spec handle_ansi_mode(Raxol.Terminal.Emulator.t(), [integer()], :set | :reset) :: Raxol.Terminal.Emulator.t()
Handles ANSI mode setting or resetting.
DEPRECATED: Use Raxol.Terminal.Commands.Modes.handle_ansi_mode/3 instead.
@spec handle_dec_private_mode(Raxol.Terminal.Emulator.t(), [integer()], :set | :reset) :: Raxol.Terminal.Emulator.t()
Handles DEC private mode setting or resetting.
DEPRECATED: Use Raxol.Terminal.Commands.Modes.handle_dec_private_mode/3 instead.
@spec handle_ed(Raxol.Terminal.Emulator.t(), integer()) :: Raxol.Terminal.Emulator.t()
Erase Display handler.
DEPRECATED: Use Raxol.Terminal.Commands.Screen.erase_display/2 instead.
@spec handle_el(Raxol.Terminal.Emulator.t(), integer()) :: Raxol.Terminal.Emulator.t()
Erase Line handler.
DEPRECATED: Use Raxol.Terminal.Commands.Screen.erase_line/2 instead.
@spec handle_sixel_graphics(Raxol.Terminal.Emulator.t(), String.t()) :: Raxol.Terminal.Emulator.t()
Handles Sixel graphics.
DEPRECATED: This should be moved to a dedicated Sixel handler module.
@spec insert_line(Raxol.Terminal.Emulator.t(), integer()) :: Raxol.Terminal.Emulator.t()
Inserts blank lines at the current cursor position.
DEPRECATED: Use Raxol.Terminal.Commands.Screen.insert_lines/2 instead.
Parses a raw parameter string buffer into a list of integers or nil values.
DEPRECATED: Use Raxol.Terminal.Commands.Parser.parse_params/1 instead.