:: commit 5d5ebf9d55e0129d8570d5edfb795c5aee8bf31a

mintsuki <mintsuki@protonmail.com> — 2022-09-05 01:10

parents: aaff3c15f9

textmode: Load notready() *before* setting term_{cols,rows}

diff --git a/common/lib/term.c b/common/lib/term.c
index c14521dd..ba80a061 100644
--- a/common/lib/term.c
+++ b/common/lib/term.c
@@ -181,6 +181,8 @@ void term_textmode(void) {
         return;
     }
 
+    term_notready();
+
     init_vga_textmode(&term_rows, &term_cols, true);
 
     if (serial) {
@@ -190,8 +192,6 @@ void term_textmode(void) {
 
     term_reinit();
 
-    term_notready();
-
     raw_putchar    = text_putchar;
     clear          = text_clear;
     enable_cursor  = text_enable_cursor;
tab: 248 wrap: offon