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 F07D5C7EE2E for ; Mon, 12 Jun 2023 20:14:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B337D86168; Mon, 12 Jun 2023 22:14:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="B81heEC5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9985F8206E; Mon, 12 Jun 2023 22:14:44 +0200 (CEST) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D927E8613D for ; Mon, 12 Jun 2023 22:14:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-30fbac9639fso1871012f8f.1 for ; Mon, 12 Jun 2023 13:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1686600879; x=1689192879; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=drU5LcXpXODbocqAwbZSyEvnXQMlT1sjQdBlXme9uc8=; b=B81heEC5owagfIWj29m5Wgxi953/ifVhSIWj3uYzpWqo+hx+HHYqtzd1wSZjibDLHK tNf8Dw5MXAfbQJOue0a/wFMXhU7lxleiF1oh6IPTXwpdy4Ei2fN03aJCugGZlF58AL9i QQEHmSQpiN1dnnQFNsDWo8+ScetkE9YLceG2I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686600879; x=1689192879; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=drU5LcXpXODbocqAwbZSyEvnXQMlT1sjQdBlXme9uc8=; b=Z5iB6Aq66bCt0sS5gj1uk9mjHMG9mghID+qIc6POoVeYXKOawnxS/j4Wq1qoyouwKs DkMg3joTgQw1s8H46eqU1vUdQJZjhJ+IjlNmMi5U7ySuo/AwdPpIlucXJoG6nf8P9Qz1 9dzUcYMFRU5plHx1S37lHIGJCgShdorvosEpybIt0LSxML/WzFyC0eNG5SeFPuamV9Ej UIHJ1ss/6FjiI4Wlu+jQZg4Ov801a1WhDKX6p4uHUHaeABJpd5Ou1yxIva0LShOFky2G ogiUHOMBGDSccWsv7E9N9yGrmFbAtr0wM6Qo4lOWRsDwUJfcNvXS8mcClBuTT/WJcDO2 gKSg== X-Gm-Message-State: AC+VfDw89+cCzBPdv/9ajJj5b/rqRX3RaOGPbtq8uQob6i8DwmBPZdeT hpWbB4gfiyvHWcnXPRQlmsHqtx6KdizJuBH2WZpH2g== X-Google-Smtp-Source: ACHHUZ6egJCe2eqnJ/BQzXOkFeazpnZW418dtIvosWWxa7aE/8Yls4gQnMYmhpBFGjKeEFrygwuDMg== X-Received: by 2002:adf:f107:0:b0:30a:d747:b357 with SMTP id r7-20020adff107000000b0030ad747b357mr5776491wro.56.1686600879076; Mon, 12 Jun 2023 13:14:39 -0700 (PDT) Received: from sjg1.roam.corp.google.com (79-67-123-132.dynamic.dsl.as9105.com. [79.67.123.132]) by smtp.gmail.com with ESMTPSA id t1-20020adfe101000000b0030e5a63e2dbsm13399390wrz.80.2023.06.12.13.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 13:14:38 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Mark Kettenis , Frank Wunderlich , Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima , Stefan Roese Subject: [PATCH] menu: Re-enable the ANSI codes Date: Mon, 12 Jun 2023 21:14:32 +0100 Message-ID: <20230612201434.861700-1-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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