]> git.proxmox.com Git - grub2.git/blobdiff - grub-core/term/uboot/console.c
Lift 255x255 erminal sie restriction to 65535x65535. Also change from
[grub2.git] / grub-core / term / uboot / console.c
index 51defee6eec67c6780912fe76edccab99f023b49..8bf1b3cee01ccd3c94ef1a8acd6a9ed127379387 100644 (file)
@@ -56,21 +56,10 @@ uboot_console_init_input (struct grub_term_input *term)
 
 extern struct grub_terminfo_output_state uboot_console_terminfo_output;
 
-static void
-uboot_console_dimensions (void)
-{
-  /* Use a small console by default.  */
-  if (!uboot_console_terminfo_output.width)
-    uboot_console_terminfo_output.width = 80;
-  if (!uboot_console_terminfo_output.height)
-    uboot_console_terminfo_output.height = 24;
-}
 
 static grub_err_t
 uboot_console_init_output (struct grub_term_output *term)
 {
-  uboot_console_dimensions ();
-
   grub_terminfo_output_init (term);
 
   return 0;
@@ -82,8 +71,9 @@ struct grub_terminfo_input_state uboot_console_terminfo_input = {
 
 struct grub_terminfo_output_state uboot_console_terminfo_output = {
   .put = put,
-  .width = 80,
-  .height = 24
+  /* FIXME: In rare cases when console isn't serial,
+     determine real width.  */
+  .size = { 80, 24 }
 };
 
 static struct grub_term_input uboot_console_term_input = {