eraseChars method
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,
);
}