]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
menu: Re-enable the ANSI codes
authorSimon Glass <sjg@chromium.org>
Sat, 17 Jun 2023 10:49:48 +0000 (11:49 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jun 2023 18:38:16 +0000 (14:38 -0400)
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.

Correct this by enabling ANSI again.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Pali Rohár <pali@kernel.org>
Reported-by: Mark Kettenis <mark.kettenis@xs4all.nl>
Reported-by: Frank Wunderlich <frank-w@public-files.de>
Fixes: 32bab0eae51b ("menu: Make use of CLI character processing")
Tested-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
common/menu.c

index 94514177e4e93e3190a6e13519a958895d1efddd..b55cf7b9996795d95283ef493ee708cd2c52965f 100644 (file)
@@ -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.