misc: Initialise terminal before randomising memory

This commit is contained in:
mintsuki 2022-03-28 07:18:09 +02:00
parent 41ea16e2ff
commit 2917932d69
1 changed files with 4 additions and 1 deletions

View File

@ -637,8 +637,11 @@ static noreturn void _menu(bool timeout_enabled) {
if (randomise_mem_str == NULL)
randomise_mem_str = config_get_value(NULL, 0, "RANDOMIZE_MEMORY");
bool randomise_mem = randomise_mem_str != NULL && strcmp(randomise_mem_str, "yes") == 0;
if (randomise_mem)
if (randomise_mem) {
term_vbe(0, 0);
early_term = true;
pmm_randomise_memory();
}
char *editor_enabled_str = config_get_value(NULL, 0, "EDITOR_ENABLED");
if (editor_enabled_str != NULL) {