Also fix erase

This commit is contained in:
Mark
2020-06-25 17:30:21 +03:00
parent 5ad4e2da38
commit 231d5d35f2
+4 -2
View File
@@ -144,11 +144,13 @@ static void process_csi(struct console *con, struct console_buffer *buf) {
switch (buf->esc_argv[0]) {
case 0:
// Erase lines down
//memsetw(con_buffer, attr, con_width * y);
memsetw(buf->data, buf->attr, con->width_chars * buf->y);
break;
case 1:
// Erase lines up
//memsetw(&con_buffer[y * con_width], attr, con_width * (con_height - y));
memsetw(&buf->data[buf->y * con->width_chars],
buf->attr,
con->width_chars * (con->height_chars - buf->y));
break;
case 2:
// Erase all