diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-01 15:18:19 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-01 15:18:19 +0000 |
commit | feccc28a6f61c9dca365100c37a5623c0f1c608b (patch) | |
tree | 630800763b7c1ddf0ab6e12fa15d68cd2331f063 | |
parent | 04bbf1f3f0a88b9b97d988c5947baf0a34e3217d (diff) | |
download | edk2-platforms-feccc28a6f61c9dca365100c37a5623c0f1c608b.tar.xz |
cleanup function and eliminate build error.
submitted-by:jcarsey
reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12069 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c index 460433e373..c5e47b105b 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c @@ -88,7 +88,7 @@ MainCommandSaveFile ( );
/**
- show help menu.
+ Show help information for the editor.
@retval EFI_SUCCESS The operation was successful.
**/
@@ -1350,7 +1350,7 @@ MainCommandSaveFile ( }
/**
- show help menu.
+ Show help information for the editor.
@retval EFI_SUCCESS The operation was successful.
**/
@@ -1359,22 +1359,28 @@ MainCommandDisplayHelp ( VOID
)
{
- INTN CurrentLine=0;
- CHAR16 * InfoString;
- EFI_INPUT_KEY Key;
+ INT32 CurrentLine;
+ CHAR16 *InfoString;
+ EFI_INPUT_KEY Key;
+ //
// print helpInfo
+ //
for (CurrentLine = 0; 0 != MainMenuHelpInfo[CurrentLine]; CurrentLine++) {
InfoString = HiiGetString(gShellDebug1HiiHandle, MainMenuHelpInfo[CurrentLine], NULL);
- ShellPrintEx (0,CurrentLine+1,L"%E%s%N",InfoString);
+ ShellPrintEx (0, CurrentLine+1, L"%E%s%N", InfoString);
}
+ //
// scan for ctrl+w
+ //
do {
gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);
} while(SCAN_CONTROL_W != Key.UnicodeChar);
+ //
// update screen with file buffer's info
+ //
FileBufferRestorePosition ();
FileBufferNeedRefresh = TRUE;
FileBufferOnlyLineNeedRefresh = FALSE;
|