Raxol.Terminal.CommandExecutor (Raxol v0.2.0)

View Source

DEPRECATED: 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 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.

Inserts blank lines at the current cursor position.

Parses a raw parameter string buffer into a list of integers or nil values.

Functions

clear_line(emulator, mode)

Clears a line or part of a line based on the mode parameter.

DEPRECATED: Use Raxol.Terminal.Commands.Screen.clear_line/2 instead.

clear_screen(emulator, mode)

Clears the screen or a part of it based on the mode parameter.

DEPRECATED: Use Raxol.Terminal.Commands.Screen.clear_screen/2 instead.

delete_line(emulator, count)

Deletes lines at the current cursor position.

DEPRECATED: Use Raxol.Terminal.Commands.Screen.delete_lines/2 instead.

execute_csi_command(emulator, params_buffer, intermediates_buffer, final_byte)

This function is deprecated. This module is deprecated. Use Raxol.Terminal.Commands.* modules instead..

Executes a CSI (Control Sequence Introducer) command.

DEPRECATED: Use Raxol.Terminal.Commands.Executor.execute_csi_command/4 instead.

execute_dcs_command(emulator, params_buffer, intermediates_buffer, final_byte, payload)

Executes a DCS (Device Control String) command.

DEPRECATED: Use Raxol.Terminal.Commands.Executor.execute_dcs_command/5 instead.

execute_osc_command(emulator, command_string)

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

get_param(params, index, default \\ 1)

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

handle_ansi_mode(emulator, params, action)

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

handle_dec_private_mode(emulator, params, action)

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

handle_ed(emulator, mode \\ 0)

Erase Display handler.

DEPRECATED: Use Raxol.Terminal.Commands.Screen.erase_display/2 instead.

handle_el(emulator, mode \\ 0)

Erase Line handler.

DEPRECATED: Use Raxol.Terminal.Commands.Screen.erase_line/2 instead.

handle_sixel_graphics(emulator, payload)

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

insert_line(emulator, count)

Inserts blank lines at the current cursor position.

DEPRECATED: Use Raxol.Terminal.Commands.Screen.insert_lines/2 instead.

parse_params(params_string)

@spec parse_params(String.t()) :: [integer() | nil | [integer() | nil]]

Parses a raw parameter string buffer into a list of integers or nil values.

DEPRECATED: Use Raxol.Terminal.Commands.Parser.parse_params/1 instead.