diff options
author | Jaben Carsey <jaben.carsey@intel.com> | 2015-06-15 20:21:06 +0000 |
---|---|---|
committer | jcarsey <jcarsey@Edk2> | 2015-06-15 20:21:06 +0000 |
commit | 8e4fd502c536f377d7d90fac7a0038aea934a08b (patch) | |
tree | 5b10f9ff054929a39da05f9e6a5c3e44deb20d29 /ShellPkg | |
parent | 4d95a9aa08d1e360a67f8524bc50d975573ea1fd (diff) | |
download | edk2-platforms-8e4fd502c536f377d7d90fac7a0038aea934a08b.tar.xz |
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
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Application/Shell/ConsoleLogger.c | 6 |
1 files changed, 6 insertions, 0 deletions
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));
}
|