From mboxrd@z Thu Jan 1 00:00:00 1970 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 07A45C76196 for ; Tue, 11 Apr 2023 20:19:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 40C1485813; Tue, 11 Apr 2023 22:19:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 7616485D95; Tue, 11 Apr 2023 22:19:47 +0200 (CEST) Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2690383741 for ; Tue, 11 Apr 2023 22:19:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=daniel@makrotopia.org Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pmKSs-0008GM-31; Tue, 11 Apr 2023 22:19:43 +0200 Date: Tue, 11 Apr 2023 21:19:40 +0100 From: Daniel Golle To: Simon Glass Cc: U-Boot Mailing List , Anatolij Gustschin , Tom Rini , Heinrich Schuchardt Subject: Re: [PATCH v3 08/25] menu: Make use of CLI character processing Message-ID: References: <20230106145243.411626-1-sjg@chromium.org> <20230106145243.411626-9-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230106145243.411626-9-sjg@chromium.org> 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 Fri, Jan 06, 2023 at 08:52:26AM -0600, Simon Glass wrote: > Avoid duplicating some of the escape-sequence processing here and use the > CLI function instead. > > Signed-off-by: Simon Glass > --- > > [...] > diff --git a/common/menu.c b/common/menu.c > index 7db98942a61..45f36ae3ede 100644 > --- a/common/menu.c > +++ b/common/menu.c > @@ -15,6 +15,8 @@ > > #include "menu.h" > > +#define ansi 0 Now that I'm using U-Boot 2023.04 I noticed that this introduces a (cosmetic) regression: The autoboot countdown in bootmenu is now longer re-written, but instead the last menu item line is continously appended like: U-Boot consoleHit any key to stop autoboot: 3 Hit any key to stop autoboot: 2 To regain the previous behavior one should change the line to #define ansi 1 To me this looks a bit unfinished, as if there was some sort of probing of the terminal capabilities supposed to happen but then this has never been implemeneted...