mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
ShellPkg: print only valid characters for file overwrite prompt
When copy command prompts to overwrite an existing file, pressing backspace continuously removes everything including the shell prompt. So print only valid characters for file overwrite prompt. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah <tapandshah@hpe.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
parent
b340056060
commit
ac55b92554
@ -3403,7 +3403,8 @@ ShellPromptForResponse (
|
||||
break;
|
||||
}
|
||||
}
|
||||
break; case ShellPromptResponseTypeYesNoAllCancel:
|
||||
break;
|
||||
case ShellPromptResponseTypeYesNoAllCancel:
|
||||
if (Prompt != NULL) {
|
||||
ShellPrintEx(-1, -1, L"%s", Prompt);
|
||||
}
|
||||
@ -3421,7 +3422,11 @@ ShellPromptForResponse (
|
||||
if (EFI_ERROR(Status)) {
|
||||
break;
|
||||
}
|
||||
ShellPrintEx(-1, -1, L"%c", Key.UnicodeChar);
|
||||
|
||||
if (Key.UnicodeChar <= 127 && Key.UnicodeChar >= 32) {
|
||||
ShellPrintEx (-1, -1, L"%c", Key.UnicodeChar);
|
||||
}
|
||||
|
||||
switch (Key.UnicodeChar) {
|
||||
case L'Y':
|
||||
case L'y':
|
||||
|
Loading…
x
Reference in New Issue
Block a user