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 9C5D5C77B7C for ; Sun, 7 May 2023 21:08:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2074E846AD; Sun, 7 May 2023 23:08:55 +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="P05Yr1V2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7C97B846AD; Sun, 7 May 2023 23:08:53 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 652DA846A5 for ; Sun, 7 May 2023 23:08:51 +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 9BC4060FDB; Sun, 7 May 2023 21:08:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA72DC433D2; Sun, 7 May 2023 21:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683493729; bh=07RsDwfBeD38WDQ0L1kwriMC1SMJ5J9oswcdGq0CEKA=; h=Date:From:To:Subject:From; b=P05Yr1V20wvf8lEVLM0VKxaItPjyI+Ka/FXN8HXV6Go+qY409tX1FiTY/57GRwP5f TDLcYLyEhN4S2TGU/Rgoz6X7Z1AOPFakLSoyDUg7BLIWQN1ShL5hFuzZoIT2Gxv8nt 75g43aRoq7CJaktwl5dUKlx2RlGwij0Ab+UirTdVxCgQhCbYy+RGiutfcboEfuqu/3 9ZBhCrzAzdGDwOD8ZgbpAsNz+QzAcFPq/CqBlvjpKX4Awzk/6RsJOLqU65fgl63DOJ yvbYs6VR8V2zfE0W8/UICMYKK5X1g4Gz13zELQ7q87WPdyIiFL6Pq0zhDsGSjXGpSO PYCBkw3m8TI/w== Received: by pali.im (Postfix) id B35F47FC; Sun, 7 May 2023 23:08:45 +0200 (CEST) Date: Sun, 7 May 2023 23:08:45 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Simon Glass , Tom Rini , u-boot@lists.denx.de Subject: U-Boot Bootmenu's autoboot rendering is broken Message-ID: <20230507210845.7mpkikeotrwme6yu@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 If you run bootmenu in U-Boot it will print following output: *** U-Boot Boot Menu *** Attached kernel Internal eMMC External SD card U-Boot boot order U-Boot consoleHit any key to stop autoboot: 30 Hit any key to stop autoboot: 29 Hit any key to stop autoboot: 28 It happens on both serial output and VGA video output, so it is not related to video output driver or interpreting of ANSI sequence. Last entry is being overwritten by "Hit any key to stop autoboot" and then every one second is new text appended after this last entry with updated countdown. This is broken... I run git bisect and the result is: 32bab0eae51b55898d1e2804e6614d9143840581 is the first bad commit commit 32bab0eae51b55898d1e2804e6614d9143840581 Author: Simon Glass Date: Fri Jan 6 08:52:26 2023 -0600 menu: Make use of CLI character processing Avoid duplicating some of the escape-sequence processing here and use the CLI function instead. Signed-off-by: Simon Glass :040000 040000 62275c330c72e251d79fd3f867f8c3e44a6d8f32 3933deacc7661348a31e73822341b4b262bec382 M cmd :040000 040000 49ba8a914e6bd3f0438db86d290af226a1eb1272 1cce113f49b3ecbb1acf6d56fa0bc8f279cf5794 M common :040000 040000 021b5af8bf4e8f1226b93e63f4cd9f2e581a9659 2eb10232c77e0c4fa78677b059db3c5990c2799a M include Simon, could you look at this issue? It can be simple reproduced just by calling "bootmenu" command.