Revision: 17632
          http://sourceforge.net/p/edk2/code/17632
Author:   jcarsey
Date:     2015-06-15 20:21:06 +0000 (Mon, 15 Jun 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Tapan Shah <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c

Modified: trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c
===================================================================
--- trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c       2015-06-15 
15:31:29 UTC (rev 17631)
+++ trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c       2015-06-15 
20:21:06 UTC (rev 17632)
@@ -227,6 +227,12 @@
   if (ConsoleInfo->CurrentStartRow == ConsoleInfo->OriginalStartRow) {
     return (EFI_SUCCESS);
   }
+
+  //
+  // Clear the screen
+  //
+  ConsoleInfo->OldConOut->ClearScreen(ConsoleInfo->OldConOut);
+
   ConsoleInfo->CurrentStartRow = ConsoleInfo->OriginalStartRow;
   return (UpdateDisplayFromHistory(ConsoleInfo));
 }


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to