Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp108171rdb; Sun, 21 Jan 2024 20:13:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXbBnseM1lLYYibKwVZzKihsa5fjhRzOkwj1ADlT7xe3tsq2AApGm1+/h+v2+ZlFQgMjIP X-Received: by 2002:a17:903:124b:b0:1d5:7220:9ff with SMTP id u11-20020a170903124b00b001d5722009ffmr4743735plh.117.1705896837743; Sun, 21 Jan 2024 20:13:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705896837; cv=pass; d=google.com; s=arc-20160816; b=ctnPk/Yrrppk4k3s/0BP9yqXtlfP5VYEaSLltY403WFOTK699UAky817qM72TWD9JS ByGOZEpDN3iJ/PTF3g66kVKTh5i3ffnm+2V7nvVbpQ/gm7ahmShBNtpQ/qFZJFeXMXxA jpISn0BdLp+U2TSqOrnLWrj2NxFjmZ3rOms6U7Y1vkA3eh+TGoKy5dHnRSlmPp3HDS0v UWENuj2V116+5xllzRkPd+3sdKmMTF79w+Qv4gHcCj5bp/PDbhnbRw1Qoabx8k4/VHBZ GS2L77xGhvBmafp11SSLYXf2LbYBCkEDUtpw2i85vaXQ1INGsGmKk0nbhkzXI6Kjfc65 vTEg== ARC-Message-Signature: i=2; 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=sFyv+jUWRXd/cynW/u9ytP1g1fYNXA9LJzShvHGdwP4=; fh=iPU+1i4zPQayPEot7zPKKfPwAfxDCBKvnzBO2y7usmY=; b=bc6h1XUkIuGFNbP3PV19tzpepksQb4M5L9d8KWSeg5O+8tjNVQVnNCbfCaRilXvtLb IvGdnEXUkJp+iRAOaDTTNOfX6EM/Z+bvKIi+hRNEyiXyD8l8riyod4M5nYjosmsva7jO YeGLP8AmvwGtn2jsSmq+MRM20r816+IoG1Zfysm5zFOhh4VH1S2uefJO+NUupmFpCsPG Yq9TSdts/4MAnR5AXISHrlsmSrIU9AlKx/zZmRSGOzrmepa1PpFUH4q4o9tbMPVO3rdv AsiXOqe5tRC9E6JJKBN6p3+ItJFyVvTnKOj0qsL0mQyhe8eeO4AXAX4RTwNfNq36dq+E 4KQA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PLWbGf8D; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-32318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id iz12-20020a170902ef8c00b001d72c4b75d4si3690345plb.559.2024.01.21.20.13.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 20:13:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PLWbGf8D; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-32318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 58AB7281B5C for ; Mon, 22 Jan 2024 04:13:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9A3D63A0; Mon, 22 Jan 2024 04:13:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="PLWbGf8D" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A0DA610C for ; Mon, 22 Jan 2024 04:13:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705896829; cv=none; b=Nsp8frD0+kIHcfrd6zOJ+Dlj6lacYopcfTQywMfYbU9G+dINdvsCpTwMhStqxcMkVXO3c/3DWwLfZUX90v+IYk04PzIGgBHZz6jwaQwyCe5qqGggk4+X5aHs/4m/os+9/KeM15Bl+d8T4gcl/n2Q0j3aiCG22L/Ze8DCF13Ibls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705896829; c=relaxed/simple; bh=sFyv+jUWRXd/cynW/u9ytP1g1fYNXA9LJzShvHGdwP4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=s2AcTHdZsk19UzLMb+8SJxEWFUQV+knffXpmdQwkU/dFZr7XM2uZ6xgkjKJmS9a6X7wPGXlviJtYa93D00AkDhBuukwlknV3YUqycQCteRRVRdFbIQNFls5chvLmFolO5+F7nbWVPsOTfYztYF9Auc8YkNGTe7i50j8eDgZPwyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=PLWbGf8D; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a2e0be86878so688055166b.1 for ; Sun, 21 Jan 2024 20:13:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705896826; x=1706501626; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sFyv+jUWRXd/cynW/u9ytP1g1fYNXA9LJzShvHGdwP4=; b=PLWbGf8DqqZRS4ebVQlJSYwWox8ZDlQyT7ITPMLl02ogjtg5nsiuz/Pu72c3d/CZTc m7LBh2ecbB+5deg4Tuax94+Az1YuTm3jWxNmAZbzkCSc7WX6jQWjfyUbofq0BBmH+QQH 1ZknQhY5ls23SnTr4NG8HH5lZeV3rPL5BdxRw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705896826; x=1706501626; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sFyv+jUWRXd/cynW/u9ytP1g1fYNXA9LJzShvHGdwP4=; b=vrip6WnwLcGRGygT2zB9i3Tp5Wj2yS7MEZ2StgMMZe6jsCJ1FAy2/bgDFNgy6XsDvb h62gZqfBzXMbsuiqzdEo24CEAx9QlIEh2+GTGto5KTUn5ZLb3qUaHYkmznGE8MZji65c ilXvGoYIyd9oaKx1CqLwkS7htsRl7HsxRlgc/aVuSdPyGWjyRTxRGvRsB8F0xoehk+Vx Vn+oDyA2B22u4Cuvfd7MbDRjLZ/tpIVyWJ2DvRR6vpn8W6SxHhDQEAcxuyoNhXKEpTL+ aeh1HUpyPlXYzLk2QqnT8PAYvoBhjJALWejC11+hflQF1u2MoFO/Kye47MFgyAL1caHJ Ex5A== X-Gm-Message-State: AOJu0YwmbfS5mr9/fFSvsU4ToOMPN/nBzLVcV5uahhbZG6+/o+9OvojA 3BAKlInd7u/Iib9AXvuicEDpZjXZMiYbXk52TQnsGuM5HiscrMTyyuIL6B20O+LYzu/ctskcraU = X-Received: by 2002:a17:906:d99:b0:a2e:9f2c:980c with SMTP id m25-20020a1709060d9900b00a2e9f2c980cmr3377775eji.72.1705896825793; Sun, 21 Jan 2024 20:13:45 -0800 (PST) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com. [209.85.221.47]) by smtp.gmail.com with ESMTPSA id d3-20020a170906544300b00a2693ce340csm12869214ejp.59.2024.01.21.20.13.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Jan 2024 20:13:45 -0800 (PST) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3392b15ca41so686896f8f.0 for ; Sun, 21 Jan 2024 20:13:44 -0800 (PST) X-Received: by 2002:adf:f641:0:b0:337:b36d:72a4 with SMTP id x1-20020adff641000000b00337b36d72a4mr1723451wrp.36.1705896824443; Sun, 21 Jan 2024 20:13:44 -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: Tomasz Figa Date: Mon, 22 Jan 2024 13:13:27 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: menuconfig: Make hidden options show as dim To: Nicolas Schier , Masahiro Yamada 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 Tue, Jan 16, 2024 at 9:01=E2=80=AFPM Nicolas Schier wr= ote: > > On Tue, Jan 16, 2024 at 07:58:05PM +0900, Masahiro Yamada wrote: > > On Mon, Jan 15, 2024 at 2:04=E2=80=AFPM Tomasz Figa wrote: > > > > > > 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= options > > > > > > > on the screen can be overwhelming and may make it hard to dis= tinguish > > > > > > > between available and hidden ones. Make them easier to distin= guish by > > > > > > > displaying the hidden one as dim (using the A_DIM curses attr= ibute). > > > > > > > > > > > > > > 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_inactiv= e.atr > > > > > of the mono theme: > > > > > > > > > > https://elixir.bootlin.com/linux/latest/source/scripts/kconfig/lx= dialog/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 > > I see the same behaviour as Masahiro described with foot 1.13.1 on > Debian 12. Thanks for testing! I'll use the two for my testing as well and try to figure out something more portable. Best regards, Tomasz