From feccc28a6f61c9dca365100c37a5623c0f1c608b Mon Sep 17 00:00:00 2001 From: jcarsey Date: Mon, 1 Aug 2011 15:18:19 +0000 Subject: [PATCH] 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 --- .../Edit/MainTextEditor.c | 18 ++++++++++++------ 1 file 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;