]> git.proxmox.com Git - mirror_edk2.git/commitdiff
removing return cursor to old position...
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Jun 2009 00:52:11 +0000 (00:52 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Jun 2009 00:52:11 +0000 (00:52 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8579 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellLib/UefiShellLib.c

index eb2bc6268f7560bcb3326d9e265f153ac673c1bc..6d83e29346d0acf0c64a5c73017bf19ad436353e 100644 (file)
@@ -2009,11 +2009,10 @@ CopyReplace(
 /**\r
   Print at a specific location on the screen.\r
 \r
-  This function will move the cursor to a given screen location, print the specified string, \r
-  and return the cursor to the original locaiton.  \r
+  This function will move the cursor to a given screen location and print the specified string\r
   \r
   If -1 is specified for either the Row or Col the current screen location for BOTH \r
-  will be used and the cursor's position will not be moved back to an original location.\r
+  will be used.\r
 \r
   if either Row or Col is out of range for the current console, then ASSERT\r
   if Format is NULL, then ASSERT\r
@@ -2048,8 +2047,7 @@ ShellPrintEx(
   CHAR16            *PostReplaceFormat;\r
   CHAR16            *PostReplaceFormat2;\r
   UINTN             Return;\r
-  INT32             CurrentCol;\r
-  INT32             CurrentRow;\r
+\r
   EFI_STATUS        Status;\r
   UINTN             NormalAttribute;\r
   CHAR16            *ResumeLocation;\r
@@ -2085,13 +2083,8 @@ ShellPrintEx(
   FreePool(PostReplaceFormat);\r
 \r
   if (Col != -1 && Row != -1) {\r
-    CurrentCol = gST->ConOut->Mode->CursorColumn;\r
-    CurrentRow = gST->ConOut->Mode->CursorRow;\r
     Status = gST->ConOut->SetCursorPosition(gST->ConOut, Col, Row);\r
     ASSERT_EFI_ERROR(Status);\r
-  } else {\r
-    CurrentCol = 0;\r
-    CurrentRow = 0;\r
   }\r
 \r
   NormalAttribute = gST->ConOut->Mode->Attribute;\r
@@ -2146,11 +2139,6 @@ ShellPrintEx(
     //\r
     FormatWalker = ResumeLocation + 2;\r
   }\r
-    \r
-  if (Col != -1 && Row != -1) {\r
-    Status = gST->ConOut->SetCursorPosition(gST->ConOut, CurrentCol, CurrentRow);\r
-    ASSERT_EFI_ERROR(Status);\r
-  }\r
 \r
   FreePool(PostReplaceFormat2);\r
 \r