Later VTs allow erasing only partial lines so add support for that in the
console backend.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
console_erase_region(con, x, con->cursor_y, x, con->cursor_y, false);
}
+void kmscon_console_erase_chars(struct kmscon_console *con, unsigned int num)
+{
+ unsigned int x;
+
+ if (!con || !num)
+ return;
+
+ if (con->cursor_x >= con->size_x)
+ x = con->size_x - 1;
+ else
+ x = con->cursor_x;
+
+ console_erase_region(con, x, con->cursor_y, x + num - 1, con->cursor_y,
+ false);
+}
+
void kmscon_console_erase_cursor_to_end(struct kmscon_console *con)
{
unsigned int x;
void kmscon_console_insert_chars(struct kmscon_console *con, unsigned int num);
void kmscon_console_delete_chars(struct kmscon_console *con, unsigned int num);
void kmscon_console_erase_cursor(struct kmscon_console *con);
+void kmscon_console_erase_chars(struct kmscon_console *con, unsigned int num);
void kmscon_console_erase_cursor_to_end(struct kmscon_console *con);
void kmscon_console_erase_home_to_cursor(struct kmscon_console *con);
void kmscon_console_erase_current_line(struct kmscon_console *con);