[PATCH] menu: Re-enable the ANSI codes

Peng Fan peng.fan at oss.nxp.com
Fri Jun 16 03:15:10 CEST 2023



On 6/13/2023 4:14 AM, Simon Glass wrote:
> Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
> 
> 
> The intent here was to allow ANSI codes to be disabled, since it was
> proving impoosible to test operation of the menu code when it kept moving
> the cursor. Unfortunately this ended up in the patch.

Typo: impoosible->impossible.

> 
> Correct this by enabling ANSI again.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reported-by: Pali Rohár <pali at kernel.org>
> Reported-by: Mark Kettenis <mark.kettenis at xs4all.nl>
> Reported-by: Frank Wunderlich <frank-w at public-files.de>
> Fixes: 32bab0eae51b ("menu: Make use of CLI character processing")
> ---
> 
>   common/menu.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/menu.c b/common/menu.c
> index 94514177e4e9..b55cf7b99967 100644
> --- a/common/menu.c
> +++ b/common/menu.c
> @@ -15,7 +15,7 @@
> 
>   #include "menu.h"
> 
> -#define ansi 0
> +#define ansi 1
> 
>   /*
>    * Internally, each item in a menu is represented by a struct menu_item.
> --
> 2.41.0.162.gfafddb0af9-goog
> 


More information about the U-Boot mailing list