fix: screen switch now works well with the shell and its "history"
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include "ctype.h"
|
||||
#include "kprintf.h"
|
||||
#include "shell.h"
|
||||
#include "string.h"
|
||||
#include "sys/io.h"
|
||||
#include "terminal.h"
|
||||
@ -44,6 +45,8 @@ void terminal_set_screen(int pos)
|
||||
screen = &screens[pos];
|
||||
memcpy(TERM_BUF, screen->buffer, sizeof(screen->buffer));
|
||||
update_cursor();
|
||||
if (TERM_BUF[0] == vga_entry(' ', VGA_COLOR_WHITE))
|
||||
kprintf(0, PROMPT);
|
||||
}
|
||||
|
||||
void terminal_setcolor(uint8_t color)
|
||||
|
||||
Reference in New Issue
Block a user