diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-30 18:44:41 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-30 18:44:41 +0000 |
commit | 8bb7441edd2d41b03af0666367ce0bc7a78080a5 (patch) | |
tree | 811046f2a49271c528480c861506694ba8f05718 /ShellPkg/Library/UefiShellLib | |
parent | 479f85bb721765fefc43bb98bff999e2b3bc779a (diff) | |
download | edk2-platforms-8bb7441edd2d41b03af0666367ce0bc7a78080a5.tar.xz |
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/edk2@12965 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellLib')
-rw-r--r-- | ShellPkg/Library/UefiShellLib/UefiShellLib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellLib/UefiShellLib.c b/ShellPkg/Library/UefiShellLib/UefiShellLib.c index aabd9140df..85a5d44f08 100644 --- a/ShellPkg/Library/UefiShellLib/UefiShellLib.c +++ b/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"%");
|