Make MOTD clear the screen

This commit is contained in:
Mario Hüttel 2020-04-27 20:19:38 +02:00
parent 9761204b08
commit d91463c458
1 changed files with 3 additions and 1 deletions

View File

@ -454,7 +454,9 @@ shellmatta_handle_t shell_init(shellmatta_write_t write_func)
void shell_print_motd(shellmatta_handle_t shell)
{
shellmatta_printf(shell, "\r\nShimatta 仕舞った Reflow Controller ready\r\n\r\n");
/* Clear display and set cursor to home position */
shellmatta_printf(shell, "\e[2J\e[H");
shellmatta_printf(shell, "Shimatta 仕舞った Reflow Controller ready\r\n\r\n");
shell_cmd_ver(shell, NULL, 0UL);
shell_handle_input(shell, "\r\n", 2UL);
}