vte: implement CSI-J
The J CSI is used to erase parts of the screen. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
a5a357e012
commit
dcfbbc3e1d
@ -237,6 +237,15 @@ static void parse_csi(struct kmscon_vte *vte, uint32_t val)
|
||||
vte->parser.state = STATE_NORMAL;
|
||||
|
||||
switch (val) {
|
||||
case 'J':
|
||||
if (vte->parser.csi_argc < 1 ||
|
||||
vte->parser.csi_argv[0] == 0)
|
||||
kmscon_console_erase_cursor_to_screen(vte->con);
|
||||
else if (vte->parser.csi_argv[0] == 1)
|
||||
kmscon_console_erase_screen_to_cursor(vte->con);
|
||||
else if (vte->parser.csi_argv[0] == 2)
|
||||
kmscon_console_erase_screen(vte->con);
|
||||
break;
|
||||
case 'K':
|
||||
if (vte->parser.csi_argc < 1 ||
|
||||
vte->parser.csi_argv[0] == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user