<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Universal/Console, branch dependabot/github_actions/actions/github-script-9</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-02-28T04:43:49+00:00</updated>
<entry>
<title>MdeModulePkg/TerminalDxe: Fix Backspace key for VT-UTF8 terminal type</title>
<updated>2026-02-28T04:43:49+00:00</updated>
<author>
<name>Damien-Chen</name>
<email>inkfan130924783@gmail.com</email>
</author>
<published>2026-02-09T11:07:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=58c9ba24d4b7192496eeedbac3bffc0e81cc420f'/>
<id>urn:sha1:58c9ba24d4b7192496eeedbac3bffc0e81cc420f</id>
<content type='text'>
When QEMU is launched with -nographic, the Backspace key (DEL, 0x7f)
doesn't work in the UEFI Shell because the VT-UTF8 terminal type
interprets DEL as SCAN_DELETE instead of CHAR_BACKSPACE.

Modern terminal emulators (xterm, gnome-terminal, etc.) send DEL (0x7f)
for Backspace and are UTF-8 compatible. This patch updates
TerminalTypeVtUtf8 to interpret DEL as CHAR_BACKSPACE, consistent with
how TerminalTypeTtyTerm already handles it.

This approach preserves VT-UTF8 as the default terminal type (which
supports full Unicode), while fixing the Backspace functionality for
modern terminal environments.

Signed-off-by: Damien Chen &lt;inkfan130924783@gmail.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Fix PreferMode selection for same-width text modes</title>
<updated>2026-02-28T03:35:35+00:00</updated>
<author>
<name>Ashraf Ali S</name>
<email>ashraf.ali.s@intel.com</email>
</author>
<published>2026-02-11T05:46:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=41b32312c47e2b8fdc5b0dacb4d7c1a4d159fcf0'/>
<id>urn:sha1:41b32312c47e2b8fdc5b0dacb4d7c1a4d159fcf0</id>
<content type='text'>
The current PreferMode selection logic requires both Columns AND Rows to
be strictly greater (&gt;) than the current maximum, which fails when a
text mode has the same column count but more rows.

Example failure case (1920x1200 display):
- Mode 5: 240x56 - Selected as PreferMode
- Mode 6: 240x63 - Rejected because 240 is not &gt; 240

This mismatch causes ConsplitterSetConsoleOutMode to later request
Mode 6, triggering an unnecessary text mode change and clearing the
screen during console init.

Root Cause:
GraphicsConsole used: if ((Col &gt; Max) &amp;&amp; (Row &gt; Max))
This fails when only rows increase while columns stay the same.

Solution:
Change to: if ((Col &gt;= Max) &amp;&amp; (Row &gt;= Max))
This aligns with ConSplitter mode selection logic and correctly selects
the mode with the highest column and row counts.

After fix (1920x1200 display):
- Mode 5: 240x56
- Mode 6: 240x63 - Correctly selected as PreferMode

This ensures GraphicsConsole and ConSplitter match on the preferred mode
preventing unnecessary screen clears during console initialization.

Signed-off-by: Ashraf Ali S &lt;ashraf.ali.s@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T18:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7a934d0befca7d10f361c76af6d2fcb6eb48c835'/>
<id>urn:sha1:7a934d0befca7d10f361c76af6d2fcb6eb48c835</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Remove extraneous parentheses</title>
<updated>2025-11-22T01:43:26+00:00</updated>
<author>
<name>Mike Beaton</name>
<email>mjsbeaton@gmail.com</email>
</author>
<published>2025-11-08T06:40:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5185e6cb00054a5c45110352be0dd865cfa1cb4a'/>
<id>urn:sha1:5185e6cb00054a5c45110352be0dd865cfa1cb4a</id>
<content type='text'>
XCODE5 toolchain finds these, with errors such as:
PxeFunction.c:763:27: error: equality comparison with extraneous parentheses

Signed-off-by: Mike Beaton &lt;mjsbeaton@gmail.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg : Clear keyboard queue buffer after reading</title>
<updated>2025-10-09T08:02:51+00:00</updated>
<author>
<name>nick.wang</name>
<email>nick.wang@insyde.com</email>
</author>
<published>2025-04-15T11:35:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0cad130cb4885961da201bb9b08424b3fd3d2249'/>
<id>urn:sha1:0cad130cb4885961da201bb9b08424b3fd3d2249</id>
<content type='text'>
There is a possibility to retrieve user input keystroke data stored in the
queue buffer via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL pointer. To prevent
exposure of the password string, clear the queue buffer by filling it
with zeros after reading.

Signed-off-by: Nick Wang &lt;nick.wang@insyde.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/TerminalDxe: Improve the implementation of AnsiTestString</title>
<updated>2025-09-23T01:02:47+00:00</updated>
<author>
<name>Gao Qihang</name>
<email>gaoqihang@loongson.cn</email>
</author>
<published>2025-08-27T06:48:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=ba41bd096af6fc1c7ad61f32359014bac85540ef'/>
<id>urn:sha1:ba41bd096af6fc1c7ad61f32359014bac85540ef</id>
<content type='text'>
Adjust AnsiTestString to be compatible with wide/narrow string in
TerminalDxe driver. If WIDE_CHAR or NARROW_CHAR is hit, the string
is still valid since OutputString function will correctly handle it.

Signed-off-by: Gao Qihang &lt;gaoqihang@loongson.cn&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/TerminalDxe: Add missing types for TestString function</title>
<updated>2025-09-23T01:02:47+00:00</updated>
<author>
<name>Gao Qihang</name>
<email>gaoqihang@loongson.cn</email>
</author>
<published>2025-07-21T03:12:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0053bbf833bb1612813a4af2ee653cd8b0ba4e19'/>
<id>urn:sha1:0053bbf833bb1612813a4af2ee653cd8b0ba4e19</id>
<content type='text'>
Add four newly added terminal types in TerminalConOutTestString, although
this function is rarely used. This patch is a supplement to previous patch
https://github.com/tianocore/edk2/commit/8a53ea9d9f40aad5504dc6080978a30b1b89ff3e.

Signed-off-by: Gao Qihang &lt;gaoqihang@loongson.cn&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Fix malformed terminal control sequences</title>
<updated>2025-09-01T05:53:59+00:00</updated>
<author>
<name>Jack Little</name>
<email>jack.tay.little@hpe.com</email>
</author>
<published>2025-07-14T20:42:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=aeea04341cd12d237fe90e7ed9ebd1cfe7764dab'/>
<id>urn:sha1:aeea04341cd12d237fe90e7ed9ebd1cfe7764dab</id>
<content type='text'>
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 &lt;jack.tay.little@hpe.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Improve the implementation of EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL</title>
<updated>2025-08-22T10:32:40+00:00</updated>
<author>
<name>Gao Qihang</name>
<email>gaoqihang@loongson.cn</email>
</author>
<published>2025-08-01T08:26:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0e1e079f4c5081da6b3b43f9dfc45932299ebb91'/>
<id>urn:sha1:0e1e079f4c5081da6b3b43f9dfc45932299ebb91</id>
<content type='text'>
Fix TestString() to be compatible with wide/narrow string in
GraphicsConsole driver. If WIDE_CHAR or NARROW_CHAR is hit in
TestString function, ignore it since OutputString function will
correctly handle it.
Fix OutputString() to skip wide/narrow char in TerminalDxe. Because
they are not displayable in terminal emulation tool, ingore to
output if they are hit in OutputString function.

Signed-off-by: Gao Qihang &lt;gaoqihang@loongson.cn&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Console cumulative codeql issues.</title>
<updated>2025-07-17T17:45:48+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2025-05-12T17:55:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8be9a344d35316fb0ee70a33779a7a931fcb8a1d'/>
<id>urn:sha1:8be9a344d35316fb0ee70a33779a7a931fcb8a1d</id>
<content type='text'>
Running Codeql on MdeModulePkg/Universal/Console drivers results
in codeql errors stemming for the following checks.

- cpp/comparison-with-wider-type
- cpp/missing-null-test

Signed-off-by: Aaron Pop &lt;aaronpop@microsoft.com&gt;

Co-authored-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Co-authored-by: Taylor Beebe &lt;tabeebe@microsoft.com&gt;
Co-authored-by: pohanch &lt;125842322+pohanch@users.noreply.github.com&gt;
Co-authored-by: kenlautner &lt;85201046+kenlautner@users.noreply.github.com&gt;
Co-authored-by: Oliver Smith-Denny &lt;osde@linux.microsoft.com&gt;
Co-authored-by: Sean Brogan &lt;sean.brogan@microsoft.com&gt;
Co-authored-by: Aaron &lt;aaronpop@microsoft&gt;
</content>
</entry>
</feed>
