:: commit 0d7b1e114821b96a0b1761c68bbf2b66b1c462bb

mintsuki <mintsuki@protonmail.com> — 2022-09-27 04:36

parents: 00e9f2ce46

term: Do not reset mode on UEFI fallback init

diff --git a/common/lib/term.c b/common/lib/term.c
index ad099299..98cd359d 100644
--- a/common/lib/term.c
+++ b/common/lib/term.c
@@ -142,15 +142,12 @@ static void fallback_get_cursor_pos(size_t *x, size_t *y) {
 #endif
 
 void term_fallback(void) {
+    term_notready();
+
 #if defined (UEFI)
     if (!efi_boot_services_exited) {
-        gST->ConOut->Reset(gST->ConOut, false);
-        gST->ConOut->SetMode(gST->ConOut, 0);
-        cursor_x = cursor_y = 0;
-#elif defined (BIOS)
-        fallback_clear(true);
 #endif
-        term_notready();
+        fallback_clear(true);
         raw_putchar = fallback_raw_putchar;
         clear = fallback_clear;
         set_cursor_pos = fallback_set_cursor_pos;
tab: 248 wrap: offon