grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] menu_entry: Disable cursor during update_screen()


From: Andrei Borzenkov
Subject: Re: [PATCH] menu_entry: Disable cursor during update_screen()
Date: Mon, 22 Feb 2016 10:00:02 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

29.01.2016 17:26, Thomas Huth пишет:
> When running grub in a VGA console of a KVM pseries guest on PowerPC,
> you can see the cursor sweeping over the whole line when entering a
> character in editor mode. This is visible because grub always refreshes
> the whole line when entering a character in editor mode, and drawing
> characters is quite a slow operation with the firmware used for the
> powerpc pseries guests (SLOF).
> To avoid this ugliness, the cursor should be disabled when refreshing
> the screen contents during update_screen().
> 

Applied, thanks!

> Signed-off-by: Thomas Huth <address@hidden>
> ---
>  grub-core/normal/menu_entry.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/grub-core/normal/menu_entry.c b/grub-core/normal/menu_entry.c
> index 62c7e16..68359eb 100644
> --- a/grub-core/normal/menu_entry.c
> +++ b/grub-core/normal/menu_entry.c
> @@ -250,6 +250,8 @@ update_screen (struct screen *screen, struct 
> per_term_screen *term_screen,
>        mode = ALL_LINES;
>      }
>  
> +  grub_term_setcursor (term_screen->term, 0);
> +
>    if (mode != NO_LINE)
>      {
>        /* Draw lines. This code is tricky, because this must calculate logical
> @@ -357,6 +359,8 @@ update_screen (struct screen *screen, struct 
> per_term_screen *term_screen,
>  
>      }
>  
> +  grub_term_setcursor (term_screen->term, 1);
> +
>    grub_term_refresh (term_screen->term);
>  }
>  
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]