vte: support ECH CSI

The ECH CSI is used to erase partial lines.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-07-14 20:24:10 +02:00
parent bdf032898e
commit 01527f9f55

View File

@ -1302,6 +1302,13 @@ static void do_csi(struct kmscon_vte *vte, uint32_t data)
log_debug("unknown parameter to CSI-K: %d",
vte->csi_argv[0]);
break;
case 'X': /* ECH */
/* erase characters */
num = vte->csi_argv[0];
if (num <= 0)
num = 1;
kmscon_console_erase_chars(vte->con, num);
break;
case 'm':
csi_attribute(vte);
break;