edk2/ShellPkg/Library
Qihang Gao 70741a15d9 ShellPkg: Fix the issue that the UEFI Shell layout is messed up
Fixes https://github.com/tianocore/edk2/issues/12689

When the UEFI Shell mapping table is empty (NULL), the console layout
becomes corrupted in DEBUG builds. This occurs because the cursor position
for the message map: No mapping found. is computed incorrectly under DEBUG
mode. The presence of DEBUG output from the Shell driver causes
gST->ConOut->Mode->CursorRow to no longer reflect the actual cursor position
on the serial port, leading to misplacement of subsequent output.

This patch replaces the existing print routine with ShellPrintHiiDefaultEx().
The new function automatically calculates the correct cursor position for the
"No mapping found" line, eliminating the dependency on the stale CursorRow
value. As a result, the layout remains consistent regardless of DEBUG message
activity.

Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
2026-06-21 16:49:02 +00:00
..
UefiHandleParsingLib ShellPkg/UefiHandleParsingLib: support handle list growth 2026-03-26 17:36:35 +00:00
UefiShellAcpiViewCommandLib ShellPkg: Replace manual alignment checks with helper macros 2026-06-09 07:20:10 +00:00
UefiShellBcfgCommandLib ShellPkg: Use the newly introduced ShellPrintHiiDefaultEx() alias 2025-10-01 10:02:57 +02:00
UefiShellCEntryLib ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellCommandLib ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
UefiShellDebug1CommandsLib Global: Fix Spelling Errors in PCI/PCIe Definitions 2026-05-08 02:15:34 +00:00
UefiShellDriver1CommandsLib ShellPkg/UefiShellDriver1: Remove unused Status 2026-04-09 11:13:08 +00:00
UefiShellInstall1CommandsLib ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
UefiShellLevel1CommandsLib ShellPkg/UefiShellLevel1: Lower indentation level in MainCmdXXX() 2026-04-30 12:14:33 +00:00
UefiShellLevel2CommandsLib ShellPkg: Fix the issue that the UEFI Shell layout is messed up 2026-06-21 16:49:02 +00:00
UefiShellLevel3CommandsLib ShellPkg/UefiShellLevel3: Lower indentation level in MainCmdXXX() 2026-05-01 12:16:07 +00:00
UefiShellLib ShellPkg/UefiShellLib: Add IsDotOrDotDot() function 2026-04-24 18:18:47 +00:00
UefiShellNetwork1CommandsLib ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
UefiShellNetwork2CommandsLib ShellPkg: align UNI file headers with UNI Spec standard 2026-03-02 19:32:17 +00:00