eraseChars method

void eraseChars(
  1. int count, {
  2. bool respectProtected = false,
})

Erases count cells starting at the cursor position.

Implementation

void eraseChars(int count, {bool respectProtected = false}) {
  final start = _cursorX;
  count = min(count, viewWidth - start);
  currentLine.eraseRange(
    start,
    start + count,
    terminal.cursor,
    respectProtected: respectProtected,
  );
}