Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: aeea04341cd12d237fe90e7ed9ebd1cfe7764dab
      
https://github.com/tianocore/edk2/commit/aeea04341cd12d237fe90e7ed9ebd1cfe7764dab
  Author: Jack Little <jack.tay.lit...@hpe.com>
  Date:   2025-09-01 (Mon, 01 Sep 2025)

  Changed paths:
    M MdeModulePkg/Universal/Console/TerminalDxe/Terminal.h
    M MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c

  Log Message:
  -----------
  MdeModulePkg: Fix malformed terminal control sequences

Commit 9224a2b91764ab17b2c1dbc9fdcb012eaed62da6
adds support for larger terminal dimensions; however, the ANSI control
sequences to manipulate the terminal cursor are not built to accomodate
terminal dimensions that are three digits long.

For example, suppose we want to move the cursor 163 columns to the
right. The required control sequence would be `^[[163C`; however, the
existing code will create a control sequence of `^[[@3C` due to trying
to add 16 to the character '0' instead of either 1 or 6.

This fix adds a third digit to the sequence templates for moving the
cursor forward, moving it backwards, and setting the cursor position.

Signed-off-by: Jack Little <jack.tay.lit...@hpe.com>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to