Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp368033rdb; Tue, 16 Jan 2024 02:58:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhM/688A9lpRigzvNuEF4LfuiURwMxJ37uFN6MH7jgjkTew92PlkVYtx7XxHJDwxJISJlw X-Received: by 2002:a17:906:f55:b0:a26:ebad:7a47 with SMTP id h21-20020a1709060f5500b00a26ebad7a47mr2925832ejj.106.1705402729918; Tue, 16 Jan 2024 02:58:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705402729; cv=none; d=google.com; s=arc-20160816; b=YrWJRZxDrTGwwS+BXGScfa2JsbWwcvPS2pb5Yl2a7LTJgMD4nsgeWp0ChzzWgUIypc sYTNJeP3HFuBbuQgGggv9MWVj5MUX2KcPQ1l92dXevpHOoo7jg256ZkHpioB/UJ0Jq5n fAXdd2hfWC1hdEhg43DKrKAWhy2tdh4DSFcXn/rNmpmqkpAdYakY16wERPiIzfv3Jpsi tXUslSKaPpu2m1OT5vezzdhGPizSXrojzCTo1G3I26R0sEIN4YGcWPDvtVDfJc5coiVM EQXlrjL0Udht2lJH2rSHRPmbl/OvDsfWOHc/DaqQ4Xd6ovDXImEICvoU58WalmzmFX3H htaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=kF9ToAveJZJ4Fv1F80hhssUuCPyp4OpSXHZudSFoRlo=; fh=sxscVsdojCsQiAtZF2+fCcUqexc2QCBgNxiEk83mwHU=; b=Xrnq+GSABbSiS802B7Ur0uQt4asmJNJS9Iqgx4UKUZhxt5zl09XU3w8JS9FzzX64Rm ADK4+k+EhUzXbG2uR/NuFhgRyOPwbjLp4Bymeb1PbygPmWCg9vkeEGiSAEvxFrest/uc Z4Wq8DpEZqEKQfF6gXvEQy5x7nkQa3GQ5Oq7veVWH4Md6B7RBcLIaJbVrVHONs2h8mII 0nsIyxi9zAbwvBV8Va4YlA9ArR0EXRw7e3IEsKQ24CT+wsh67SSisj8Bp6ZnCs0anYwc LruiLR9ED7kulCQjEA5/KZt7uaHhveFhlkrQw5sGx3lpPqOO/1ArMHEMo1xseyOCXdkC pAEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=S2siVRl+; spf=pass (google.com: domain of linux-kernel+bounces-27280-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p9-20020a1709060dc900b00a2ac1722347si4546965eji.1041.2024.01.16.02.58.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 02:58:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27280-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=S2siVRl+; spf=pass (google.com: domain of linux-kernel+bounces-27280-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AA8411F24467 for ; Tue, 16 Jan 2024 10:58:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A7D31A58F; Tue, 16 Jan 2024 10:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S2siVRl+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACA031A581; Tue, 16 Jan 2024 10:58:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85CAFC433C7; Tue, 16 Jan 2024 10:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705402722; bh=iAKRNPzzMkaTQkY4UUCIX+B/X35A2Lg6XCS5p0fAERQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=S2siVRl+vctesGO1xykrsDMvemjtVazOi5ory9HO/1W6mJzOwS5lNhB8WsMs16lTH pEPaOtOc0OKgbzSyVHmizIg4oyake2jBh6eovJUtkngOphDznn6DyrWVf5WTWy90HO 5KpsFPvEbg1rWum4UA11KCnoXjVjZNefFwsQMvQDPR6sRkHn/ik15BrJGBd/CP8Z1G LD3m52XX9PZKGyzblYSXSsiA3cJG/AVEKDL+4sOsors0xc3WrAABTij4dg+BDNDrXY YeT1lJAolmV6wiX/J2m1RP+hK5HwCGPpVEoY2dXbWg1oYd4jNq28qAXL7AHADwe4DQ pdG3xhN9hPYfA== Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-206b77b9f4bso3669228fac.1; Tue, 16 Jan 2024 02:58:42 -0800 (PST) X-Gm-Message-State: AOJu0YzvlwAyh9bfUY2EdVob6lu+kt+2HScp/s+PUMLefSemsweOu/Ca IXnmpXb7+LAspEBVe3U4hgdEG3eTYvtnJOhaodg= X-Received: by 2002:a05:6870:521:b0:206:be6d:8287 with SMTP id j33-20020a056870052100b00206be6d8287mr10990288oao.25.1705402721967; Tue, 16 Jan 2024 02:58:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231228054630.3595093-1-tfiga@chromium.org> In-Reply-To: From: Masahiro Yamada Date: Tue, 16 Jan 2024 19:58:05 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: menuconfig: Make hidden options show as dim To: Tomasz Figa Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 15, 2024 at 2:04=E2=80=AFPM Tomasz Figa wr= ote: > > On Sat, Jan 13, 2024 at 8:23=E2=80=AFPM Masahiro Yamada wrote: > > > > On Wed, Jan 10, 2024 at 10:05=E2=80=AFPM Tomasz Figa wrote: > > > > > > On Fri, Dec 29, 2023 at 1:10=E2=80=AFAM Masahiro Yamada wrote: > > > > > > > > On Thu, Dec 28, 2023 at 2:46=E2=80=AFPM Tomasz Figa wrote: > > > > > > > > > > When hidden options are toggled on (using 'z'), the number of opt= ions > > > > > on the screen can be overwhelming and may make it hard to disting= uish > > > > > between available and hidden ones. Make them easier to distinguis= h by > > > > > displaying the hidden one as dim (using the A_DIM curses attribut= e). > > > > > > > > > > Signed-off-by: Tomasz Figa > > > > > > > > > > > > > > > > Do you think this is useful? > > > > > > > > This changes the color only when you select a hidden item. > > > > > > > > > > > > For unselected items, you cannot distinguish hidden ones, > > > > as A_DIM has no effect to black text. > > > > > > > > > > > > > > Hmm, are you sure about that? For me it seems to dim the text. it > > > seems to be also used in the existing code for dlg.button_inactive.at= r > > > of the mono theme: > > > > > > https://elixir.bootlin.com/linux/latest/source/scripts/kconfig/lxdial= og/util.c#L26 > > > > > > > > Then, your code works only on the mono theme. > > (when your terminal does not support color, or > > "MENUCONFIG_COLOR=3Dmono make menuconfig") > > > > No, that's not what I meant. It works for me for all themes, see the > screenshot at https://postimg.cc/sBsM0twT . The terminal is tmux > inside hterm (which in turn is supposed to be compatible with xterm). > I guess I can test a couple of different terminals. > > In which terminal is it not working for you? I use gnome-terminal. The disto is Ubuntu 23.10 --=20 Best Regards Masahiro Yamada