:: commit 693945b157944a6f24f3431434d774c9adfd5628

mintsuki <mintsuki@protonmail.com> — 2021-04-14 08:44

parents: e52f4620cc

stivale2: Implement cols and rows fields for terminal struct tag

diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c
index 752dfe7e..56bfe37e 100644
--- a/stage23/protos/stivale2.c
+++ b/stage23/protos/stivale2.c
@@ -303,6 +303,11 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table
         tag->term_write = (uintptr_t)term_write;
 #endif
 
+        // We provide rows and cols
+        tag->flags |= (1 << 0);
+        tag->cols = term_cols;
+        tag->rows = term_rows;
+
         append_tag(&stivale2_struct, (struct stivale2_tag *)tag);
 
         goto skip_modeset;
tab: 248 wrap: offon