]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: update Console to clear screen when resetting
authorJaben Carsey <jaben.carsey@intel.com>
Mon, 15 Jun 2015 20:21:06 +0000 (20:21 +0000)
committerjcarsey <jcarsey@Edk2>
Mon, 15 Jun 2015 20:21:06 +0000 (20:21 +0000)
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

ShellPkg/Application/Shell/ConsoleLogger.c

index 06f96866718c86de5f4512f24ed651c494d14c4a..22abf55ccc6ca92496443c669599976471860762 100644 (file)
@@ -227,6 +227,12 @@ ConsoleLoggerStopHistory(
   if (ConsoleInfo->CurrentStartRow == ConsoleInfo->OriginalStartRow) {\r
     return (EFI_SUCCESS);\r
   }\r
+\r
+  //\r
+  // Clear the screen\r
+  //\r
+  ConsoleInfo->OldConOut->ClearScreen(ConsoleInfo->OldConOut);\r
+\r
   ConsoleInfo->CurrentStartRow = ConsoleInfo->OriginalStartRow;\r
   return (UpdateDisplayFromHistory(ConsoleInfo));\r
 }\r