]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Missing part of r2705
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 8 Sep 2010 17:09:07 +0000 (19:09 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 8 Sep 2010 17:09:07 +0000 (19:09 +0200)
grub-core/term/ieee1275/ofconsole.c

index 9ec85631bf6f7b4c1ea4e0296b2b45e925717f7c..1e8fbd1ad2c358917b2ca42e2a121fbc5587341a 100644 (file)
@@ -117,9 +117,14 @@ grub_ofconsole_getwh (struct grub_term_output *term __attribute__ ((unused)))
 }
 
 static void
-grub_ofconsole_setcursor (struct grub_term_output *term __attribute__ ((unused)),
+grub_ofconsole_setcursor (struct grub_term_output *term,
                          int on)
 {
+  grub_terminfo_setcursor (term, on);
+
+  if (!grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_HAS_CURSORONOFF))
+    return;
+
   /* Understood by the Open Firmware flavour in OLPC.  */
   if (on)
     grub_ieee1275_interpret ("cursor-on", 0);