audk/MdeModulePkg/Universal
Roy Franz 014f93acab Accept VT220 DEL and function keys for TTY terminal type
Accept the VT220 escape code [3~ as backspace for TtyTerm terminals.  This is
sent by many Linux terminals by default.  Also accept VT220 function keys
F1-F12, and VT100 F1-F4 keys as these are commonly sent by Linux terminals.
The VT220 escape codes are longer, and variable length so a new state is added
to the state machine along with a variable to construct the multibyte escape
sequence.
There are currently no ambiguous escape sequence prefixes accepted, so the TTY
terminal accepts escape sequences for a variety of terminals.  The goal is to
'just work' with as many terminals as possible, rather than properly emulating
any specific terminal.  Backspace, Del, and F10 have been tested on xterm,
rxvt, tmux, and screen.
Note: The existing vt100 function key handling does not match the vt100
documentation that I found, so I added the TTY terminal handling
of VT100 F1-F4 (really PF1-PF4 on vt100) separately.  The vt100
has no F5-F10 keys, so I don't know what the current vt100 code
is based on.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Roy Franz <roy.franz@linaro.org>
Reviewed-by: Feng Tian <feng.tian@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17897 6f19259b-4bc3-4df7-8a09-765794883524
2015-07-09 06:24:20 +00:00
..
Acpi MdeModulePkg AcpiTableDxe: Install config table at ACPI data change 2015-07-08 09:44:46 +00:00
BdsDxe MdeModulePkg: Add UNI file for BdsDxe driver. 2015-05-15 08:45:35 +00:00
BootManagerPolicyDxe MdeModulePkg: Add UNI files for BootManagerPolicyDxe driver. 2015-05-15 08:46:06 +00:00
CapsulePei MdeModulePkg/Universal/CapsulePei: Use safe string functions to refine code. 2015-07-01 08:22:31 +00:00
CapsuleRuntimeDxe MdeModulePkg/Universal/CapsuleRuntimeDxe: Use safe string functions to refine code. 2015-07-01 08:23:30 +00:00
Console Accept VT220 DEL and function keys for TTY terminal type 2015-07-09 06:24:20 +00:00
DebugPortDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
DebugSupportDxe MdeModulePkg DebugSupportDxe: Fix build error with GNU assembler 2014-12-17 05:16:48 +00:00
DevicePathDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Disk MdeModulePkg/PartitionDxe: Fix media probe 2015-07-07 11:26:27 +00:00
DisplayEngineDxe MdeModulePkg:Refine the function comments 2015-07-07 08:17:28 +00:00
DriverHealthManagerDxe MdeModulePkg: Add UNI files for DriverHealthManagerDxe driver. 2015-05-15 08:46:34 +00:00
DriverSampleDxe MdeModulePkg:Use safe string functions 2015-06-29 02:36:31 +00:00
EbcDxe Fix X64 native function call prolog. Prepare space for at least 4 arguments, 2014-09-22 05:54:41 +00:00
EsrtDxe MdeModulePkg: Update coding style 2015-05-20 02:19:17 +00:00
FaultTolerantWriteDxe MdeModulePkg: Cleanup gEfiSmmAccess2ProtocolGuid reference. 2015-02-05 00:59:56 +00:00
FaultTolerantWritePei MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
FvSimpleFileSystemDxe MdeModulePkg/Universal/FvSimpleFileSystemDxe: Use safe string functions to refine code. 2015-07-01 08:25:33 +00:00
HiiDatabaseDxe MdeModulePkg:Modify the incorrect DestStr length in safe string functions 2015-07-07 04:37:07 +00:00
HiiResourcesSampleDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
LegacyRegion2Dxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
LockBox/SmmLockBox MdeModulePkg: Cleanup gEfiSmmAccess2ProtocolGuid reference. 2015-02-05 00:59:56 +00:00
MemoryTest MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Metronome MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
MonotonicCounterRuntimeDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Network fix the problem that data type conversion may loss data. 2015-07-08 09:49:41 +00:00
PCD MdeModulePkg/Universal/PCD: Use safe string functions to refine code. 2015-07-01 08:27:03 +00:00
PcatSingleSegmentPciCfg2Pei MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
PlatformDriOverrideDxe MdeModulePkg/Universal/PlatformDriOverrideDxe: Use safe string functions to refine code. 2015-07-01 08:28:13 +00:00
PrintDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
PropertiesTableAttributesDxe MdeModulePkg: Refine code to make it more readable. 2015-07-03 01:39:06 +00:00
ReportStatusCodeRouter MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
ResetSystemRuntimeDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
SectionExtractionDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
SectionExtractionPei MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
SecurityStubDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
SetupBrowserDxe MdeModulePkg: Remove gZeroGuid definition in SetupBrowserDxe 2015-07-07 02:55:34 +00:00
SmbiosDxe MdeModulePkg/Universal/SmbiosDxe: Use safe string functions to refine code. 2015-07-01 08:32:29 +00:00
StatusCodeHandler MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
TimestampDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Variable MdeModulePkg: Remove mZeroGuid definition in Universal/Variable/RuntimeDxe 2015-07-07 02:56:01 +00:00
WatchdogTimerDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00