Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA2E3C7EE43 for ; Mon, 12 Jun 2023 20:22:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D0C2185E7D; Mon, 12 Jun 2023 22:22:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="BjU/xE+u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1879F803A9; Mon, 12 Jun 2023 22:22:55 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8210186131 for ; Mon, 12 Jun 2023 22:22:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E0A3162E03; Mon, 12 Jun 2023 20:22:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AB7AC433EF; Mon, 12 Jun 2023 20:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686601370; bh=KZy4t85iOx3B9/YohzBg8Ys/XytLThJbkvEF7wEMm9Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BjU/xE+uys+Q9/CPH+x6BZ0KBAGh3ehyOLuDIWFkgwWW4iTxWFxwIdq3eD7jrJ1CF zu2tOnyJfwqNBeuj8SllQ+e2HGyyEkNstzjiKKEluQhDED/C/x+sJJDRyoh9Dcb3Z8 Ax5jR0hXe48F2AxGUJ+EzAysYPuwekA/Tgk7CeYhAvdp/c6dVJTVakRWRcplodnVqY H+DhDEPAA45d2LyCQZUdeI8hZni68IbNLnDEIfVi/cCVI38h5wNTSAKMD7hLnikT9m WOKF7e1NWMO6NYF530Rr/NW4jgs2KeoKXoQZF7IoXr7E+31fu1TzaT8UE6Cne4IrBX cpxy7y09r0DjQ== Received: by pali.im (Postfix) id 3CCC47EB; Mon, 12 Jun 2023 22:22:47 +0200 (CEST) Date: Mon, 12 Jun 2023 22:22:47 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Simon Glass Cc: U-Boot Mailing List , Mark Kettenis , Frank Wunderlich , Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima , Stefan Roese Subject: Re: [PATCH] menu: Re-enable the ANSI codes Message-ID: <20230612202247.cqo4wbrlc7ckbdpj@pali> References: <20230612201434.861700-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230612201434.861700-1-sjg@chromium.org> User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Monday 12 June 2023 21:14:32 Simon Glass wrote: > 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 > Reported-by: Pali Rohár > Reported-by: Mark Kettenis > Reported-by: Frank Wunderlich > 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 > Hello, I have tested this change but bootmenu still does not work. There is still same issue which I reported month ago. When I press DOWN key then bootmenu immediately quit instead of moving into the next entry.