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