david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[cmdline] Always clear screen after reconfiguring console

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2014-01-22 22:32:40 +00:00
parent 3ee2c4ac1c
commit 290a43efda
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/console.h>
#include <ipxe/image.h>
#include <ipxe/pixbuf.h>
#include <ipxe/ansiesc.h>
#include <ipxe/ansicol.h>
#include <usr/imgmgmt.h>
@ -114,6 +115,10 @@ static int console_exec ( int argc, char **argv ) {
goto err_configure;
}
/* Reapply default colour pair and clear screen */
ansicol_set_pair ( CPAIR_DEFAULT );
printf ( CSI "2J" CSI "H" );
err_configure:
pixbuf_put ( opts.config.pixbuf );
err_pixbuf: