summaryrefslogtreecommitdiff
path: root/edk2/ShellPkg/Library/UefiShellLib
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-30 18:44:41 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-30 18:44:41 +0000
commit2f66ed12a3a206ad0e4376f369562f94dc8d894d (patch)
tree188b6360ed73303542554984f5b2b8a17f6b277f /edk2/ShellPkg/Library/UefiShellLib
parentc19e48e7c643ff577bf8d5d1758d8f6f758e3209 (diff)
ShellPkg: Allow for format character strings to be typed in editor without having effect on editor screen.
signed-off-by: jcarsey reviewed-by: leegrosenbaum git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@12965 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/ShellPkg/Library/UefiShellLib')
-rw-r--r--edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c b/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c
index aabd9140d..85a5d44f0 100644
--- a/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c
+++ b/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c
@@ -2721,6 +2721,11 @@ InternalShellPrintWorker(
if (ResumeLocation != NULL) {
if (*(ResumeLocation-1) == L'^') {
//
+ // Move cursor back 1 position to overwrite the ^
+ //
+ gST->ConOut->SetCursorPosition(gST->ConOut, gST->ConOut->Mode->CursorColumn - 1, gST->ConOut->Mode->CursorRow);
+
+ //
// Print a simple '%' symbol
//
Status = InternalPrintTo(L"%");