2008-11-08 Robert Millan <rmh@aybabtu.com>

* term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
        `struct  grub_term_output'.  Remove `.checkkey' and `.getkey'
        members.  Update all users.
        * util/console.c (grub_ncurses_term): Split in ...
        (grub_ncurses_term_input): ... this, and ...
        (grub_ncurses_term_output): ... this.  Update all users.
This commit is contained in:
robertmh 2008-11-08 12:17:51 +00:00
parent 37c86336bf
commit 0025933a5e
3 changed files with 24 additions and 13 deletions

View file

@ -578,15 +578,13 @@ grub_vesafb_setcursor (int on)
}
}
static struct grub_term grub_vesafb_term =
static struct grub_term_output grub_vesafb_term =
{
.name = "vesafb",
.init = grub_vesafb_mod_init,
.fini = grub_vesafb_mod_fini,
.putchar = grub_vesafb_putchar,
.getcharwidth = grub_vesafb_getcharwidth,
.checkkey = grub_console_checkkey,
.getkey = grub_console_getkey,
.getwh = grub_virtual_screen_getwh,
.getxy = grub_virtual_screen_getxy,
.gotoxy = grub_vesafb_gotoxy,
@ -594,16 +592,15 @@ static struct grub_term grub_vesafb_term =
.setcolorstate = grub_virtual_screen_setcolorstate,
.setcursor = grub_vesafb_setcursor,
.flags = 0,
.next = 0
};
GRUB_MOD_INIT(vesafb)
{
my_mod = mod;
grub_term_register (&grub_vesafb_term);
grub_term_register_output (&grub_vesafb_term);
}
GRUB_MOD_FINI(vesafb)
{
grub_term_unregister (&grub_vesafb_term);
grub_term_unregister_output (&grub_vesafb_term);
}