Inline setcolorstate and move grub_Cls out of kernel.img
This commit is contained in:
parent
a68c419413
commit
919e37b0ac
5 changed files with 45 additions and 43 deletions
|
@ -774,3 +774,20 @@ grub_xputs_normal (const char *str)
|
|||
}
|
||||
grub_free (unicode_str);
|
||||
}
|
||||
|
||||
void
|
||||
grub_cls (void)
|
||||
{
|
||||
struct grub_term_output *term;
|
||||
|
||||
FOR_ACTIVE_TERM_OUTPUTS(term)
|
||||
{
|
||||
if ((term->flags & GRUB_TERM_DUMB) || (grub_env_get ("debug")))
|
||||
{
|
||||
grub_putcode ('\n', term);
|
||||
grub_term_refresh (term);
|
||||
}
|
||||
else
|
||||
(term->cls) (term);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue