X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellDebug1CommandsLib%2FEditInputBar.c;h=649ed579558e1d7a72bd38c840a02be70a3fedc4;hb=e755a4ca10aad316c3620223206d63982793b26c;hp=2c74e067412f5661b965da8b17e0240f6a9c505b;hpb=2442e62af75a0c5087fce3fb2040e26a485b0d31;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditInputBar.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditInputBar.c index 2c74e06741..649ed57955 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditInputBar.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditInputBar.c @@ -87,18 +87,18 @@ InputBarPrintInput ( gST->ConOut->EnableCursor (gST->ConOut, FALSE); - ShellPrintEx (((INT32)mPromptLen), ((INT32)LastRow) - 4, L"%s", Buffer); + ShellPrintEx (((INT32)mPromptLen), ((INT32)LastRow) - 1, L"%s", Buffer); Size = StrLen (Buffer); // // print " " after mPrompt // for (Index = Size; Index < Limit; Index++) { - ShellPrintEx ((INT32)(mPromptLen + Size), ((INT32)LastRow) - 4, L" "); + ShellPrintEx ((INT32)(mPromptLen + Size), ((INT32)LastRow) - 1, L" "); } gST->ConOut->EnableCursor (gST->ConOut, TRUE); - gST->ConOut->SetCursorPosition (gST->ConOut, Size + mPromptLen, LastRow - 4); + gST->ConOut->SetCursorPosition (gST->ConOut, Size + mPromptLen, LastRow - 1); } typedef struct { @@ -133,8 +133,6 @@ InputBarRefresh ( UINTN Size; EFI_STATUS Status; BOOLEAN NoDisplay; - UINTN Limit; - UINTN mPromptLen; UINTN EventIndex; UINTN CursorRow; UINTN CursorCol; @@ -159,17 +157,11 @@ InputBarRefresh ( // // clear input bar // - EditorClearLine (LastRow - 3, LastColumn, LastRow); + EditorClearLine (LastRow , LastColumn, LastRow); - gST->ConOut->SetCursorPosition (gST->ConOut, 0, LastRow - 4); + gST->ConOut->SetCursorPosition (gST->ConOut, 0, LastRow - 1); ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN(STR_EDIT_LIBINPUTBAR_MAININPUTBAR), gShellDebug1HiiHandle, mPrompt); - // - // that's the maximum input length that can be displayed on screen - // - mPromptLen = StrLen (mPrompt); - Limit = LastColumn - mPromptLen; - // // this is a selection mPrompt, cursor will stay in edit area // actually this is for search , search/replace