eraseLine method

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

Erases the line at the current cursor position.

Implementation

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