drivers/vga_textmode: Copy attribute byte in text_move_character
diff --git a/common/drivers/vga_textmode.c b/common/drivers/vga_textmode.c
index 5fcafc30..fefb982f 100644
--- a/common/drivers/vga_textmode.c
+++ b/common/drivers/vga_textmode.c
@@ -141,6 +141,7 @@ static void text_move_character(struct flanterm_context *_ctx, size_t new_x, siz
}
ctx->back_buffer[new_y * VD_COLS + new_x * 2] = ctx->back_buffer[old_y * VD_COLS + old_x * 2];
+ ctx->back_buffer[new_y * VD_COLS + new_x * 2 + 1] = ctx->back_buffer[old_y * VD_COLS + old_x * 2 + 1];
}
static void text_set_cursor_pos(struct flanterm_context *_ctx, size_t x, size_t y) {
