csiDeleteHandler function
Implementation
void csiDeleteHandler(CSI csi, Terminal terminal) {
var count = 1;
if (csi.params.isNotEmpty) {
count = csi.params.first;
}
if (count < 1) {
count = 1;
}
terminal.buffer.deleteChars(count);
}