mirror of https://github.com/acidanthera/audk.git
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:
parent
722529bb0d
commit
f1b87e7a60
|
@ -2009,11 +2009,10 @@ CopyReplace(
|
||||||
/**
|
/**
|
||||||
Print at a specific location on the screen.
|
Print at a specific location on the screen.
|
||||||
|
|
||||||
This function will move the cursor to a given screen location, print the specified string,
|
This function will move the cursor to a given screen location and print the specified string
|
||||||
and return the cursor to the original locaiton.
|
|
||||||
|
|
||||||
If -1 is specified for either the Row or Col the current screen location for BOTH
|
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 either Row or Col is out of range for the current console, then ASSERT
|
||||||
if Format is NULL, then ASSERT
|
if Format is NULL, then ASSERT
|
||||||
|
@ -2048,8 +2047,7 @@ ShellPrintEx(
|
||||||
CHAR16 *PostReplaceFormat;
|
CHAR16 *PostReplaceFormat;
|
||||||
CHAR16 *PostReplaceFormat2;
|
CHAR16 *PostReplaceFormat2;
|
||||||
UINTN Return;
|
UINTN Return;
|
||||||
INT32 CurrentCol;
|
|
||||||
INT32 CurrentRow;
|
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINTN NormalAttribute;
|
UINTN NormalAttribute;
|
||||||
CHAR16 *ResumeLocation;
|
CHAR16 *ResumeLocation;
|
||||||
|
@ -2085,13 +2083,8 @@ ShellPrintEx(
|
||||||
FreePool(PostReplaceFormat);
|
FreePool(PostReplaceFormat);
|
||||||
|
|
||||||
if (Col != -1 && Row != -1) {
|
if (Col != -1 && Row != -1) {
|
||||||
CurrentCol = gST->ConOut->Mode->CursorColumn;
|
|
||||||
CurrentRow = gST->ConOut->Mode->CursorRow;
|
|
||||||
Status = gST->ConOut->SetCursorPosition(gST->ConOut, Col, Row);
|
Status = gST->ConOut->SetCursorPosition(gST->ConOut, Col, Row);
|
||||||
ASSERT_EFI_ERROR(Status);
|
ASSERT_EFI_ERROR(Status);
|
||||||
} else {
|
|
||||||
CurrentCol = 0;
|
|
||||||
CurrentRow = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NormalAttribute = gST->ConOut->Mode->Attribute;
|
NormalAttribute = gST->ConOut->Mode->Attribute;
|
||||||
|
@ -2146,11 +2139,6 @@ ShellPrintEx(
|
||||||
//
|
//
|
||||||
FormatWalker = ResumeLocation + 2;
|
FormatWalker = ResumeLocation + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Col != -1 && Row != -1) {
|
|
||||||
Status = gST->ConOut->SetCursorPosition(gST->ConOut, CurrentCol, CurrentRow);
|
|
||||||
ASSERT_EFI_ERROR(Status);
|
|
||||||
}
|
|
||||||
|
|
||||||
FreePool(PostReplaceFormat2);
|
FreePool(PostReplaceFormat2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue