audk/StdLibPrivateInternalFiles/Include
Daryl McDaniel 24903bc48a StdLib: Some deployed versions of the Simple Text Input Protocol randomly return either NUL characters or Scan Codes when just typing normal text. These changes filter out NUL characters and make Scan Code and error handling more robust.
StdLibPrivateInternalFiles/Include/Device/Console.h: Change UnGetKey, in the ConInstance structure, from an EFI_INPUT_KEY structure to a CHAR16 variable.

Include/sys/termios.h: Add CHAR_SUB and CHAR_ESC for translation of '^Z' and the Escape Scan Code into the EOF and ESC characters, respectively.

LibC/Uefi/Devices/Console/daConsole.c:  Add da_ConRawRead() function to simplify the read logic. Discard NUL characters from the input stream.  In Blocking mode, retry until a non-NUL character is received.  In NonBlocking mode, a NUL causes an EAGAIN error to be returned.  Translate the Escape Scan Code into an ESC character.  If Scan Codes are ignored, retry if in Blocking mode else return an EAGAIN error.  UnGetKey becomes a single wide character instead of a structure.
    Change da_Poll() to use da_ConRawRead().

LibC/Uefi/InteractiveIO/IIOutilities.c:  BUG fix.  Return the processed input character instead of the raw character.  Allows EOF propagation.

LibC/Uefi/InteractiveIO/CanonRead.c:  Enable EOF propagation.

LibC/Uefi/InteractiveIO/IIOechoCtrl.h:  Use symbols defined in termios.h instead of hard-coded constant numbers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by:  Daryl McDaniel  <daryl.mcdaniel@intel.com>
Reviewed-by:  Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by:  Erik Bjorge <erik.c.bjorge@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16254 6f19259b-4bc3-4df7-8a09-765794883524
2014-10-28 19:20:48 +00:00
..
Arm Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
Device StdLib: Some deployed versions of the Simple Text Input Protocol randomly return either NUL characters or Scan Codes when just typing normal text. These changes filter out NUL characters and make Scan Code and error handling more robust. 2014-10-28 19:20:48 +00:00
Efi Add device abstraction code for the UEFI Console and UEFI Shell-based file systems. 2011-06-28 02:27:55 +00:00
Ia32 Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
Ipf Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
X64 Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
LibConfig.h StdLib: Revise the meaning of several feature macros. 2011-11-03 00:01:24 +00:00
MainData.h Changes so that Argv points to narrow-character versions of the command-line arguments. 2011-07-30 00:25:54 +00:00
extern.h EADK (StdLib, AppPkg, StdLibPrivateInternalFiles): Python Beta Release. 2012-03-24 01:19:06 +00:00
kfile.h StdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define MAX_OUTPUT, the Maximum number of bytes in a single terminal output operation. 2012-09-20 21:01:21 +00:00
namespace.h StdLib: Make the vfscanf function public. 2011-11-03 00:19:10 +00:00
reentrant.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00