csiEraseInLineHandler function
Implementation
void csiEraseInLineHandler(CSI csi, Terminal terminal) {
var ps = 0;
if (csi.params.isNotEmpty) {
ps = csi.params.first;
}
switch (ps) {
case 0:
terminal.buffer.eraseLineFromCursor();
break;
case 1:
terminal.buffer.eraseLineToCursor();
break;
case 2:
terminal.buffer.eraseLine();
break;
default:
terminal.debug.onError("Unsupported EL: CSI $ps K");
}
}