eraseLineFromCursor method

void eraseLineFromCursor({
  1. bool respectProtected = false,
})

Erases the line from the cursor to the end of the line, including the cursor position.

Implementation

void eraseLineFromCursor({bool respectProtected = false}) {
  currentLine.isWrapped = false;
  currentLine.eraseRange(
    _cursorX,
    viewWidth,
    terminal.cursor,
    respectProtected: respectProtected,
  );
}