summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-17 00:52:11 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-17 00:52:11 +0000
commitf1b87e7a60f503a03fea0389f11963e2b675a014 (patch)
treeb9a5186786888c8d04014c298a9b86b220611af1 /ShellPkg
parent722529bb0db62b7864259da853794570163d9144 (diff)
downloadedk2-platforms-f1b87e7a60f503a03fea0389f11963e2b675a014.tar.xz
removing return cursor to old position...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8579 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellLib/UefiShellLib.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/ShellPkg/Library/UefiShellLib/UefiShellLib.c b/ShellPkg/Library/UefiShellLib/UefiShellLib.c
index eb2bc6268f..6d83e29346 100644
--- a/ShellPkg/Library/UefiShellLib/UefiShellLib.c
+++ b/ShellPkg/Library/UefiShellLib/UefiShellLib.c
@@ -2009,11 +2009,10 @@ CopyReplace(
/**
Print at a specific location on the screen.
- This function will move the cursor to a given screen location, print the specified string,
- and return the cursor to the original locaiton.
+ This function will move the cursor to a given screen location and print the specified string
If -1 is specified for either the Row or Col the current screen location for BOTH
- will be used and the cursor's position will not be moved back to an original location.
+ will be used.
if either Row or Col is out of range for the current console, then ASSERT
if Format is NULL, then ASSERT
@@ -2048,8 +2047,7 @@ ShellPrintEx(
CHAR16 *PostReplaceFormat;
CHAR16 *PostReplaceFormat2;
UINTN Return;
- INT32 CurrentCol;
- INT32 CurrentRow;
+
EFI_STATUS Status;
UINTN NormalAttribute;
CHAR16 *ResumeLocation;
@@ -2085,13 +2083,8 @@ ShellPrintEx(
FreePool(PostReplaceFormat);
if (Col != -1 && Row != -1) {
- CurrentCol = gST->ConOut->Mode->CursorColumn;
- CurrentRow = gST->ConOut->Mode->CursorRow;
Status = gST->ConOut->SetCursorPosition(gST->ConOut, Col, Row);
ASSERT_EFI_ERROR(Status);
- } else {
- CurrentCol = 0;
- CurrentRow = 0;
}
NormalAttribute = gST->ConOut->Mode->Attribute;
@@ -2146,11 +2139,6 @@ ShellPrintEx(
//
FormatWalker = ResumeLocation + 2;
}
-
- if (Col != -1 && Row != -1) {
- Status = gST->ConOut->SetCursorPosition(gST->ConOut, CurrentCol, CurrentRow);
- ASSERT_EFI_ERROR(Status);
- }
FreePool(PostReplaceFormat2);