mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
479f85bb72
commit
8bb7441edd
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Implements filebuffer interface functions.
|
Implements filebuffer interface functions.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>
|
Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved. <BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -489,6 +489,7 @@ FileBufferPrintLine (
|
||||||
CHAR16 *Buffer;
|
CHAR16 *Buffer;
|
||||||
UINTN Limit;
|
UINTN Limit;
|
||||||
CHAR16 PrintLine[200];
|
CHAR16 PrintLine[200];
|
||||||
|
CHAR16 PrintLine2[250];
|
||||||
|
|
||||||
//
|
//
|
||||||
// print start from correct character
|
// print start from correct character
|
||||||
|
@ -506,12 +507,13 @@ FileBufferPrintLine (
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintLine[MainEditor.ScreenSize.Column] = CHAR_NULL;
|
PrintLine[MainEditor.ScreenSize.Column] = CHAR_NULL;
|
||||||
|
ShellCopySearchAndReplace(PrintLine, PrintLine2, 250, L"%", L"^%", FALSE, FALSE);
|
||||||
|
|
||||||
ShellPrintEx (
|
ShellPrintEx (
|
||||||
0,
|
0,
|
||||||
(INT32)Row - 1,
|
(INT32)Row - 1,
|
||||||
L"%s",
|
L"%s",
|
||||||
PrintLine
|
PrintLine2
|
||||||
);
|
);
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
|
@ -2720,6 +2720,11 @@ InternalShellPrintWorker(
|
||||||
//
|
//
|
||||||
if (ResumeLocation != NULL) {
|
if (ResumeLocation != NULL) {
|
||||||
if (*(ResumeLocation-1) == L'^') {
|
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
|
// Print a simple '%' symbol
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue