Disable EFI cursor when the EFI console becomes inactive.
* term/efi/console.c (grub_efi_console_init): New function. (grub_efi_console_fini): New function. (grub_console_term_output): Register init and fini methods.
This commit is contained in:
parent
5e3bec6716
commit
dd8ff5c9e9
2 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2010-07-20 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
|
Disable EFI cursor when the EFI console becomes inactive.
|
||||||
|
|
||||||
|
* term/efi/console.c (grub_efi_console_init): New function.
|
||||||
|
(grub_efi_console_fini): New function.
|
||||||
|
(grub_console_term_output): Register init and fini methods.
|
||||||
|
|
||||||
2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* tests/util/grub-shell-tester.in: Remove bashism and declare as
|
* tests/util/grub-shell-tester.in: Remove bashism and declare as
|
||||||
|
|
|
@ -311,6 +311,20 @@ grub_console_setcursor (struct grub_term_output *term __attribute__ ((unused)),
|
||||||
efi_call_2 (o->enable_cursor, o, on);
|
efi_call_2 (o->enable_cursor, o, on);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static grub_err_t
|
||||||
|
grub_efi_console_init (struct grub_term_output *term)
|
||||||
|
{
|
||||||
|
grub_console_setcursor (term, 1);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static grub_err_t
|
||||||
|
grub_efi_console_fini (struct grub_term_output *term)
|
||||||
|
{
|
||||||
|
grub_console_setcursor (term, 0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static struct grub_term_input grub_console_term_input =
|
static struct grub_term_input grub_console_term_input =
|
||||||
{
|
{
|
||||||
.name = "console",
|
.name = "console",
|
||||||
|
@ -321,6 +335,8 @@ static struct grub_term_input grub_console_term_input =
|
||||||
static struct grub_term_output grub_console_term_output =
|
static struct grub_term_output grub_console_term_output =
|
||||||
{
|
{
|
||||||
.name = "console",
|
.name = "console",
|
||||||
|
.init = grub_efi_console_init,
|
||||||
|
.fini = grub_efi_console_fini,
|
||||||
.putchar = grub_console_putchar,
|
.putchar = grub_console_putchar,
|
||||||
.getwh = grub_console_getwh,
|
.getwh = grub_console_getwh,
|
||||||
.getxy = grub_console_getxy,
|
.getxy = grub_console_getxy,
|
||||||
|
|
Loading…
Reference in a new issue