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 442DDEB64D9 for ; Sat, 17 Jun 2023 10:50:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CEA49862E9; Sat, 17 Jun 2023 12:50:22 +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="KxIWfWhN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 677EE86306; Sat, 17 Jun 2023 12:50:21 +0200 (CEST) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 03CA0862F9 for ; Sat, 17 Jun 2023 12:50:18 +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-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f7368126a6so12623755e9.0 for ; Sat, 17 Jun 2023 03:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1686999017; x=1689591017; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DNlHtgmWo1HYP4jMcd6DRdk/M+Ka7W/F0fMC7WGlt4M=; b=KxIWfWhNOaFg/4Ohgzikk6E0mDZM+vjn3SVno0TIKNScOHJWyY7MZLlx6XbupggPKV mTURQJ6VR04z9LJHFakM+1fibdYKTvjf59DhDhZazM10y6SGSmsTZxkEhNy/2DGeVBxj rf/asoM3QQLf6lqW/ka/FL7Ij1tIz8Dmc6qf0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686999017; x=1689591017; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DNlHtgmWo1HYP4jMcd6DRdk/M+Ka7W/F0fMC7WGlt4M=; b=a+lTHly0M/zARnTiR9jy9IUoC/wQ7eRAYMjdHdDr4z7n1TT6Q1jMLfL/BYiXlgUq+c Gkhi2ZK04OrZnXhU+0OE/VzLw7jOqkpfnImvRsxRY0QgpbZpXNp/iFDc9YF4XiGDN7Si 9Ri2+mkJfLwKwVKttI3rVSQopcIav/J30foYIhJHJ2AXyuKOSS14ZqTiPocdlAZ0BBH8 M4MM34+zbXqQpyrU0qN/uyhTB9H27dKpnojH/GcOHB4wUL71n+K4tHmFQBeWFEBrjW5n Oci3DdsX4ZhH2rFUgyM4JMyXUOYOTLSlAYD3TMQTzXKErNSiMJIFQEd4RP1QNh+i7D62 8WeQ== X-Gm-Message-State: AC+VfDxi29tYpAN79fVj+ynvEwzygdVA0PftX8aUuf8MSjcgAxbwG5Md 2YYlncuBM+VhorXENozNSfcRJrwF79DWUMAcavc= X-Google-Smtp-Source: ACHHUZ5zgPdQPSxtlRhEb2A3722TBXdLQEVlFQoLuxT8TudpSAYlaDxTFD/kP4g5Yg42S1ENOpmeIA== X-Received: by 2002:a7b:c045:0:b0:3f8:dac6:58ee with SMTP id u5-20020a7bc045000000b003f8dac658eemr3264369wmc.5.1686999017143; Sat, 17 Jun 2023 03:50:17 -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 l22-20020a7bc356000000b003f7e4d143cfsm4735171wmj.15.2023.06.17.03.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jun 2023 03:50:16 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= , Simon Glass , Mark Kettenis , Frank Wunderlich , Mark Kettenis Subject: [PATCH 1/6] menu: Re-enable the ANSI codes Date: Sat, 17 Jun 2023 11:49:48 +0100 Message-ID: <20230617104956.1402370-2-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog In-Reply-To: <20230617104956.1402370-1-sjg@chromium.org> References: <20230617104956.1402370-1-sjg@chromium.org> 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") Tested-by: Mark Kettenis Reviewed-by: Mark Kettenis --- 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