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;
