eraseLineFromCursor method
void
eraseLineFromCursor()
Erases the line from the cursor to the end of the line, including the cursor position.
Implementation
void eraseLineFromCursor() {
currentLine.isWrapped = false;
currentLine.eraseRange(_cursorX, viewWidth, terminal.cursor);
}