This should make cursor-on/-off cleaner -- Regards Vladimir 'φ-coder/phcoder' Serbinenko
=== modified file 'term/ieee1275/ofconsole.c' --- term/ieee1275/ofconsole.c 2010-01-22 19:42:02 +0000 +++ term/ieee1275/ofconsole.c 2010-02-08 11:06:56 +0000 @@ -322,10 +322,26 @@ grub_ofconsole_setcursor (int on) { /* Understood by the Open Firmware flavour in OLPC. */ + + struct cursor_args + { + struct grub_ieee1275_common_hdr common; + grub_ieee1275_cell_t method; + grub_ieee1275_cell_t device; + grub_ieee1275_cell_t catch_result; + } + args; + int status; + + INIT_IEEE1275_COMMON (&args.common, "call-method", 2, 1); + args.device = (grub_ieee1275_cell_t) stdout_ihandle; + if (on) - grub_ieee1275_interpret ("cursor-on", 0); + args.method = (grub_ieee1275_cell_t) "cursor-on"; else - grub_ieee1275_interpret ("cursor-off", 0); + args.method = (grub_ieee1275_cell_t) "cursor-off"; + + status = IEEE1275_CALL_ENTRY_FN (&args); } static void
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel