audk/StdLib/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/machine StdLib: Add multi-byte character support. The normal "narrow" character set is now UTF-8 instead of ASCII. 2012-06-15 19:58:39 +00:00
Containers StdLib: Correct two instances of mismatch between function declaration and definition causing GCC compile errors. 2013-01-16 23:45:54 +00:00
Efi Ignore transmit errors for UDPv4, UDPv6 and IPv4. 2013-11-20 18:31:01 +00:00
Ia32/machine StdLib: Add multi-byte character support. The normal "narrow" character set is now UTF-8 instead of ASCII. 2012-06-15 19:58:39 +00:00
Ipf/machine StdLib: Fix IPF build issues. 2013-09-10 21:47:26 +00:00
Protocol Fixed close for socket to properly release the socket context structure and the handle. 2012-10-08 21:39:35 +00:00
X64/machine StdLib: Add multi-byte character support. The normal "narrow" character set is now UTF-8 instead of ASCII. 2012-06-15 19:58:39 +00:00
arpa Add Socket Libraries. 2011-07-30 00:30:44 +00:00
net Merged socket development branch: 2012-02-09 19:16:44 +00:00
netatalk Add Socket Libraries. 2011-07-30 00:30:44 +00:00
netinet StdLib: Fix compiler compatibility issues: 2012-02-01 00:17:05 +00:00
netinet6 Add device abstraction code for the UEFI Console and UEFI Shell-based file systems. 2011-06-28 02:34:10 +00:00
netns Add Socket Libraries. 2011-07-30 00:30:44 +00:00
sys 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
x86 StdLib: Fix some build problems and obscure bugs. 2014-09-11 21:42:26 +00:00
assert.h Update or add comments to files and functions for use by Doxygen. 2011-08-04 18:13:02 +00:00
ctype.h StdLib: Add isDirSep character classification macro and function. Implement several Posix functions and clean up EfiSysCall.h. Align file mode handling with UEFI file protocol flags. 2011-11-30 00:52:45 +00:00
dirent.h StdLib: Add directory access functions to PosixLib. 2011-11-02 19:24:19 +00:00
err.h Add Socket Libraries. 2011-07-30 00:30:44 +00:00
errno.h StdLib: Fix some build problems and obscure bugs. 2014-09-11 21:42:26 +00:00
fcntl.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
float.h Update or add comments to files and functions for use by Doxygen. 2011-08-04 23:35:57 +00:00
glob.h Add Socket Libraries. 2011-07-30 00:30:44 +00:00
inttypes.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
iso646.h Update or add comments to files and functions for use by Doxygen. 2011-08-05 23:02:43 +00:00
langinfo.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
libgen.h Add Socket Libraries. 2011-07-30 00:30:44 +00:00
limits.h StdLib: Add multi-byte character support. The normal "narrow" character set is now UTF-8 instead of ASCII. 2012-06-15 19:58:39 +00:00
locale.h Update or add comments to files and functions for use by Doxygen. 2011-08-15 19:05:36 +00:00
math.h Update or add comments to files and functions for use by Doxygen. 2011-08-15 19:05:36 +00:00
netdb.h StdLib/Include/netdb.h: Re-enable macros needed by socket applications and perform general cleanup. 2012-01-26 21:45:54 +00:00
nl_types.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
nsswitch.h Merged socket development branch: 2012-02-09 19:16:44 +00:00
paths.h StdLib: Simple code cleanup 2014-07-17 20:54:49 +00:00
pwd.h Add Socket Libraries. 2011-07-30 00:30:44 +00:00
resolv.h Merged socket development branch: 2012-02-09 19:16:44 +00:00
setjmp.h Update or add comments to files and functions for use by Doxygen. 2011-08-15 19:05:36 +00:00
signal.h Update or add comments to files and functions for use by Doxygen. 2011-08-15 19:05:36 +00:00
stdarg.h StdLib/Include/stdarg.h: Added the __va_copy macro for Python compatibility. 2012-03-28 22:17:44 +00:00
stdbool.h Update or add comments to files and functions for use by Doxygen. 2011-08-15 19:05:36 +00:00
stddef.h Update or add comments to files and functions for use by Doxygen. 2011-08-15 19:05:36 +00:00
stdint.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
stdio.h StdLib: Add multi-byte character support. The normal "narrow" character set is now UTF-8 instead of ASCII. 2012-06-15 19:58:39 +00:00
stdlib.h StdLib/Include: Minor changes in preparation for Interactive I/O (TTY) functionality. 2012-09-25 22:01:58 +00:00
string.h Update or add comments to files and functions for use by Doxygen. 2011-08-17 22:54:56 +00:00
stringlist.h Add Socket Libraries. 2011-07-30 00:30:44 +00:00
strings.h StdLib: Move the declarations for ffs() and bzero() from extern.h to strings.h. 2011-11-03 00:35:55 +00:00
sysexits.h Add Socket Libraries. 2011-07-30 00:30:44 +00:00
time.h Update or add comments to files and functions for use by Doxygen. 2011-08-17 22:54:56 +00:00
unistd.h StdLib: Add isDirSep character classification macro and function. Implement several Posix functions and clean up EfiSysCall.h. Align file mode handling with UEFI file protocol flags. 2011-11-30 00:52:45 +00:00
utime.h StdLib: Add isDirSep character classification macro and function. Implement several Posix functions and clean up EfiSysCall.h. Align file mode handling with UEFI file protocol flags. 2011-11-30 00:52:45 +00:00
wchar.h StdLib: Fix some build problems and obscure bugs. 2014-09-11 21:42:26 +00:00
wctype.h Update or add comments to files and functions for use by Doxygen. 2011-08-17 22:54:56 +00:00