removing return cursor to old position...

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8579 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jcarsey 2009-06-17 00:52:11 +00:00
parent 722529bb0d
commit f1b87e7a60
1 changed files with 3 additions and 15 deletions

View File

@ -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);