diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2015-05-15 08:54:27 +0100 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2015-05-19 14:57:35 +0100 |
commit | 2cf85ef817b79cccf3767682eb10e7ad616f148e (patch) | |
tree | c1b4c26469f2c654bdf66cf6a0c2154a55eb3c35 | |
parent | eabb6c9bb853d1d5102e463623a74a219c92c0f6 (diff) |
HACK: Treat ASCII DEL (0x7f) as backspacejuno-0.11.3-linaro1armlt-20150520-001armlt-15.05
Roy Franz proposed a fix to EDK2 to get backspace working in Shell. The
conversation got very convoluted and in the end, a simple hack will get
it working for Linaro users.
See the mailing list thread here:
http://sourceforge.net/p/edk2/mailman/message/34113959/
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
-rw-r--r-- | MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c index 4a008c9ada..c2a79f23a3 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c @@ -1559,8 +1559,8 @@ UnicodeToEfiKey ( }
if (UnicodeChar == DEL) {
- Key.ScanCode = SCAN_DELETE;
- Key.UnicodeChar = 0;
+ Key.ScanCode = SCAN_NULL;
+ Key.UnicodeChar = CHAR_BACKSPACE;
} else {
Key.ScanCode = SCAN_NULL;
Key.UnicodeChar = UnicodeChar;
|