From 6e037aa95674c830d21861d5121e42c5aa001cf1 Mon Sep 17 00:00:00 2001 From: robertmh Date: Sat, 31 May 2008 18:09:14 +0000 Subject: [PATCH] 2008-05-31 Robert Millan * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement using "cursor-on" and "cursor-off" commands (understood at least by the Open Firmware flavour on OLPC). --- ChangeLog | 6 ++++++ term/ieee1275/ofconsole.c | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b680f8f1b..889efd9c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-31 Robert Millan + + * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement + using "cursor-on" and "cursor-off" commands (understood at least by + the Open Firmware flavour on OLPC). + 2008-05-31 Michael Gorven * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor diff --git a/term/ieee1275/ofconsole.c b/term/ieee1275/ofconsole.c index faf62bf66..3b269ce9a 100644 --- a/term/ieee1275/ofconsole.c +++ b/term/ieee1275/ofconsole.c @@ -302,9 +302,13 @@ grub_ofconsole_cls (void) } static void -grub_ofconsole_setcursor (int on __attribute ((unused))) +grub_ofconsole_setcursor (int on) { - /* XXX: Not supported. */ + /* Understood by the Open Firmware flavour in OLPC. */ + if (on) + grub_ieee1275_interpret ("cursor-on", 0); + else + grub_ieee1275_interpret ("cursor-off", 0); } static void