]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/Console/TerminalDxe/Terminal.h
MdeModulePkg/TerminalDxe: Optimize TtyTerm cursor motion
authorBrian J. Johnson <bjohnson@sgi.com>
Fri, 7 Oct 2016 14:53:59 +0000 (22:53 +0800)
committerFeng Tian <feng.tian@intel.com>
Thu, 27 Oct 2016 01:11:15 +0000 (09:11 +0800)
commit27e804213149be99e4024fe3dcb4ea41b3f39717
treef577e3ada85be741cd19db1962db30d30a09d3bb
parent851b044f0a4b51101beae9214cf662308995ae1b
MdeModulePkg/TerminalDxe: Optimize TtyTerm cursor motion

For TtyTerm terminals, output a shorter escape sequence when possible
to move the cursor within the current line, and don't print any escape
sequence if the cursor is already at the correct position.  This
removes extra cursor motion activity at the EFI shell prompt,
improving performance.  It also makes it possible in many cases to
successfully use a terminal window which is taller than the driver's
mode setting (eg. 80x25.)

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>
MdeModulePkg/Universal/Console/TerminalDxe/Terminal.h
MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c