mirror_edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit
Ruiyu Ni 5563281fa2 ShellPkg/[hex]edit: use SimpleTextInEx to read console
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=682

Edit and HexEdit commands assume that SimpleTxtIn translates
Ctrl+<Alpha-Key> key combinations into Unicode control characters
(0x1-0x1A).

Such translation does not seem to be required by the UEFI spec.
Shell should not rely on implementation specific behavior.
It should instead use SimpleTextInEx to read Ctrl+<Alpha-Key> key
combinations.

The patch changes edit and hexedit to only consumes SimpleTextInEx
so that the implementation specific behavior dependency is removed.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reported-by: Felix <felixp@mail.ru>
Cc: Felix <felixp@mail.ru>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2018-02-13 10:54:45 +08:00
..
BufferImage.c ShellPkg: Refine casting expression result to bigger size 2017-03-06 14:33:25 +08:00
BufferImage.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
Clipboard.c add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
Clipboard.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
DiskImage.c ShellPkg/hexedit: Fix a read-after-free bug 2018-02-09 12:24:54 +08:00
DiskImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
FileImage.c ShellPkg/hexedit: Fix a read-after-free bug 2018-02-09 12:24:54 +08:00
FileImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
HexEdit.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
HexEditor.h add Edit and HexEdit commands. 2011-03-25 21:15:07 +00:00
HexEditorTypes.h ShellPkg/[hex]edit: use SimpleTextInEx to read console 2018-02-13 10:54:45 +08:00
HexeditStrings.uni ShellPkg: Convert all .uni files to utf-8 2015-12-09 23:07:58 +00:00
MainHexEditor.c ShellPkg/[hex]edit: use SimpleTextInEx to read console 2018-02-13 10:54:45 +08:00
MainHexEditor.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
MemImage.c ShellPkg/HexEdit: Fix EBC build failure 2017-11-07 10:17:28 +08:00
MemImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
Misc.c update copyright line format 2011-06-07 08:08:19 +00:00
Misc.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00