mirror of https://github.com/ipxe/ipxe.git
[cmdline] Always clear screen after reconfiguring console
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/17/head
parent
3ee2c4ac1c
commit
290a43efda
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue