From 8e4fd502c536f377d7d90fac7a0038aea934a08b Mon Sep 17 00:00:00 2001 From: Jaben Carsey Date: Mon, 15 Jun 2015 20:21:06 +0000 Subject: 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 Reviewed-by: Tapan Shah git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17632 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ConsoleLogger.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ShellPkg') 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)); } -- cgit v1.2.3