2005-08-30 Hollis Blanchard <hollis@penguinppc.org>

* term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
	function.
	(grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
	getcharwidth.
This commit is contained in:
hollisb 2005-08-31 01:02:05 +00:00
parent 67f44c8687
commit 003789c77c
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
* term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
function.
(grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
getcharwidth.
2005-08-28 Marco Gerards <metgerards@student.han.nl>
* include/grub/normal.h (enum grub_completion_type): Added

View file

@ -83,6 +83,12 @@ grub_ofconsole_putchar (grub_uint32_t c)
grub_ieee1275_write (stdout_ihandle, &chr, 1, 0);
}
static grub_ssize_t
grub_ofconsole_getcharwidth (grub_uint32_t c)
{
return 1;
}
static void
grub_ofconsole_setcolorstate (grub_term_color_state state)
{
@ -337,6 +343,7 @@ static struct grub_term grub_ofconsole_term =
.init = grub_ofconsole_init,
.fini = grub_ofconsole_fini,
.putchar = grub_ofconsole_putchar,
.getcharwidth = grub_ofconsole_getcharwidth,
.checkkey = grub_ofconsole_checkkey,
.getkey = grub_ofconsole_getkey,
.getxy = grub_ofconsole_getxy,