ShellPkg: update Console to clear screen when resetting

This clears the screen when scrolling is ended by a non-scrolling key press.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Tapan Shah <tapandshah@hp.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17632 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Jaben Carsey 2015-06-15 20:21:06 +00:00 committed by jcarsey
parent 4d95a9aa08
commit 8e4fd502c5
1 changed files with 6 additions and 0 deletions

View File

@ -227,6 +227,12 @@ ConsoleLoggerStopHistory(
if (ConsoleInfo->CurrentStartRow == ConsoleInfo->OriginalStartRow) { if (ConsoleInfo->CurrentStartRow == ConsoleInfo->OriginalStartRow) {
return (EFI_SUCCESS); return (EFI_SUCCESS);
} }
//
// Clear the screen
//
ConsoleInfo->OldConOut->ClearScreen(ConsoleInfo->OldConOut);
ConsoleInfo->CurrentStartRow = ConsoleInfo->OriginalStartRow; ConsoleInfo->CurrentStartRow = ConsoleInfo->OriginalStartRow;
return (UpdateDisplayFromHistory(ConsoleInfo)); return (UpdateDisplayFromHistory(ConsoleInfo));
} }