mirror_edk2/MdeModulePkg/Universal/Console/TerminalDxe
Brian J. Johnson 851b044f0a MdeModulePkg/TerminalDxe: Improve TtyTerm cursor position tracking
When we print the last character on a line, the terminal driver wraps
CursorRow/CursorColumn to the beginning of the next line.  But the
terminal itself doesn't wrap its cursor until the next character is
printed.  That throws off the driver's cursor position tracking.

So when we have printed the last character on a line, and are not in
the middle of outputing an escape sequence, synchronize the terminal
with the driver by outputing CR+LF.  This matches the expected
behavior, and the behavior of the VGA console driver.

Only change the behavior of TtyTerm, not the other terminal types.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brian Johnson <bjohnson@sgi.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Feng Tian <feng.tian@intel.com>
2016-10-27 09:11:14 +08:00
..
Ansi.c MdeModulePkg: TerminalDxe driver code clean up 2011-10-08 02:44:59 +00:00
ComponentName.c Fix the comments to follow UEFI Spec regarding how to check an EFI_HANDLE is valid/invalid. 2011-07-06 03:55:36 +00:00
Terminal.c Revert "TerminalDxe: select the UART's default receive FIFO depth" 2016-04-01 09:18:23 +08:00
Terminal.h Accept VT220 DEL and function keys for TTY terminal type 2015-07-09 06:24:20 +00:00
TerminalConIn.c Revert "TerminalDxe: select the UART's default receive FIFO depth" 2016-04-01 09:18:23 +08:00
TerminalConOut.c MdeModulePkg/TerminalDxe: Improve TtyTerm cursor position tracking 2016-10-27 09:11:14 +08:00
TerminalDxe.inf Add "TtyTerm" terminal type to TerminalDxe 2015-07-09 06:24:11 +00:00
TerminalDxe.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
TerminalDxeExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Vtutf8.c MdeModulePkg: TerminalDxe driver code clean up 2011-10-08 02:44:59 +00:00