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