Inline setcolorstate and move grub_Cls out of kernel.img

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-07-02 18:20:48 +02:00
parent a68c419413
commit 919e37b0ac
5 changed files with 45 additions and 43 deletions

View file

@ -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);
}
}