The ansi code won't handle \f the way we want, so we need to
explicitly clear the screen and reset the cursor position, like the
old 4.x code.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
NextCharJump = msg_setbg;
}
+static void msg_formfeed(void)
+{
+ printf("\033[2J\033[H");
+}
+
static void msg_novga(void)
{
syslinux_force_text_mode();
break;
case 0x0D: /* Ignore <CR> */
break;
+ case 0x0C: /* <FF> = clear screen */
+ msg_formfeed();
+ break;
case 0x19: /* <EM> = return to text mode */
msg_novga();
break;