From 326d1df9193fae2be1cce85be9c361eb6eabe182 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Thu, 18 Aug 2011 11:29:26 +0000 Subject: [PATCH] ArmPlatformPkg/Bds: Add return carriage after the user presses 'ESC' Otherwise, the next line of the boot menu was on the same line as the 'escaped' one. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12168 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/Bds/BootMenu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c index 91550df9d4..853ef09fa8 100644 --- a/ArmPlatformPkg/Bds/BootMenu.c +++ b/ArmPlatformPkg/Bds/BootMenu.c @@ -317,6 +317,9 @@ FREE_DEVICE_PATH: FreePool (DevicePath); EXIT: + if (Status == EFI_ABORTED) { + Print(L"\n"); + } return Status; } @@ -352,6 +355,9 @@ BootMenuManager ( Print(L"Choice: "); Status = GetHIInputInteger (&OptionSelected); if (EFI_ERROR(Status) || (OptionSelected == (BootManagerEntryCount+1))) { + if (EFI_ERROR(Status)) { + Print(L"\n"); + } return EFI_SUCCESS; } else if ((OptionSelected > 0) && (OptionSelected <= BootManagerEntryCount)) { Status = BootManagerEntries[OptionSelected-1].Callback (BootOptionsList); -- 2.39.2