Raxol.Terminal.Commands.EraseHandler (Raxol v2.0.1)

View Source

Handles terminal erase commands like Erase in Display (ED) and Erase in Line (EL). This module provides simple fallback implementations.

Summary

Functions

Handles erase operations for display, line, or character.

Functions

handle_erase(emulator, scope, mode, position)

Handles erase operations for display, line, or character.

Modes:

  • :screen (ED): Erase in Display
  • :line (EL): Erase in Line
  • :character (ECH): Erase Characters

Parameters:

  • mode: 0 = from cursor to end, 1 = from start to cursor, 2 = entire area
  • position: {row, col} cursor position