diff --git a/src/terminal/put.c b/src/terminal/put.c index 0b862ae..777d7e7 100644 --- a/src/terminal/put.c +++ b/src/terminal/put.c @@ -128,7 +128,7 @@ static struct font get_font_node(int c) static void terminal_scroll(void) { screen->row--; - memset(display.buff, 0, display.height * display.pitch); + terminal_clear(); for (size_t i = 0; i < VGA_WIDTH * (VGA_HEIGHT - 1); i++) { const uint32_t x = (i % VGA_WIDTH) * FONT_WIDTH; const uint32_t y = (i / VGA_WIDTH) * FONT_HEIGHT; @@ -247,7 +247,7 @@ void set_color_level(int level) }; if (level == 0) { - terminal_set_color(screen->default_color, 0); + terminal_set_color(screen->default_color, screen->bg_color); return; } terminal_set_fg_color(color_translation[level]);