mirror_edk2/MdeModulePkg/Universal/Console
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
..
ConPlatformDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
ConSplitterDxe MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
GraphicsConsoleDxe MdeModulePkg: Fix GraphicsConsole driver resolution out of sync issue 2016-01-11 02:29:09 +00:00
GraphicsOutputDxe MdeModulePkg/GraphicsOutputDxe.inf: Correct the protocol/GUID usages 2016-10-25 10:52:44 +08:00
TerminalDxe MdeModulePkg/TerminalDxe: Improve TtyTerm cursor position tracking 2016-10-27 09:11:14 +08:00