eraseLineToCursor method

void eraseLineToCursor()

Erases the line from the start of the line through the cursor, including the cell under the cursor (matches VT EL 1 and xterm.js).

Implementation

void eraseLineToCursor() {
  currentLine.isWrapped = false;
  currentLine.eraseRange(0, _cursorX + 1, terminal.cursor);
}