diff --git a/ShellPkg/Application/Shell/ConsoleLogger.c b/ShellPkg/Application/Shell/ConsoleLogger.c index 06f9686671..22abf55ccc 100644 --- a/ShellPkg/Application/Shell/ConsoleLogger.c +++ b/ShellPkg/Application/Shell/ConsoleLogger.c @@ -227,6 +227,12 @@ ConsoleLoggerStopHistory( if (ConsoleInfo->CurrentStartRow == ConsoleInfo->OriginalStartRow) { return (EFI_SUCCESS); } + + // + // Clear the screen + // + ConsoleInfo->OldConOut->ClearScreen(ConsoleInfo->OldConOut); + ConsoleInfo->CurrentStartRow = ConsoleInfo->OriginalStartRow; return (UpdateDisplayFromHistory(ConsoleInfo)); }