From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Ansi-color uses the same values for fore- and background colours Date: Wed, 9 Aug 2023 09:51:27 -0700 Message-ID: <034beec5-0505-a399-6f78-e162c819f1a4@gmail.com> References: <87h6p8mn5n.fsf@hyperspace> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3274"; mail-complaints-to="usenet@ciao.gmane.io" To: Tony Zorman , emacs-devel@gnu.org, Protesilaos Stavrou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 09 18:52:06 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTmPl-0000Zp-N2 for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Aug 2023 18:52:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTmPG-0002KM-Us; Wed, 09 Aug 2023 12:51:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTmPE-0002JT-80 for emacs-devel@gnu.org; Wed, 09 Aug 2023 12:51:32 -0400 Original-Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTmPC-0002XC-69 for emacs-devel@gnu.org; Wed, 09 Aug 2023 12:51:32 -0400 Original-Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-687ca37628eso2363325b3a.1 for ; Wed, 09 Aug 2023 09:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691599888; x=1692204688; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=2YXhN0h4ZJFwlK5vaFjyDCkS4SOj+noKwDCNW9+Lg0I=; b=lUfoYxBKW2+Z/Q/M9tVz3W70Amxa7u1s3relayyw7gCOX1L/sZPhiHNOgHUaZSzeRr akXfeY5iSx3C4V/vA+Kvd9Twyw2HFRmAIFxAV1LkNiNys9VDozAep52OPn+tHhuyLmyG i7qfeSXQ9/rWhdVurYgYLmWyxG7uuvvHiHTcG7MgnS9JE8VnLISqfCuYqn8xOGYh8yiN zpsPjVkG81uGbTgZelyY3brdwCqHvYEAtSinBQ4tKBf91QDTeZ+Jn4RFkldrIXfZ6Bch QvYz/0b3YdDsPrTmRdLbWUznrYdOnW6qwaedB+Ne++4dMuBLj8+Wz+wqeJqN/Cf1xic5 zh5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599888; x=1692204688; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2YXhN0h4ZJFwlK5vaFjyDCkS4SOj+noKwDCNW9+Lg0I=; b=HI4nQwPs/5YZRMWSbhNc4as0DVQO2HzAj9uf/TJBIDJ6OWFTG3daCohvSnfDx+b105 nZO5ZrkcQYDM7ID44iXz+F/agG/dNsWepD8OZyfcfWauqvwSn13GJwRyv2iI6W+40zbo +v4N/S2aG+/DF5rnOAqzw2E5UWIchbme2OnYYtw4NKTBY4B4p4k5hRLbg0bVPOY41B8e SLGqWpnS0zK34ycl/knFMhhDBrQSmUc2ECAwN+VOTkq+izthxEm1xkAUDJrdbpi65UOb h6mfSzpAyXfIBGRD8kzGkDUYzOFwnTemPpK8ehbjUOTOStGNe7yd1jjQEy8Vgqtf3ErU dxfA== X-Gm-Message-State: AOJu0YxA5aIcGLvrMZPajl/jI6h4QNnSeQoKwSguPjrbzhM5KL4OGr9R vHQEe9EXZKDs8WFXy58GoYU= X-Google-Smtp-Source: AGHT+IHDvnxFAgsMN0NJQYLjjAOvt14zJVFcetHRcImegX9PQkm/i2Y4ZXTZIOu1/e8eCOuSD3nmAA== X-Received: by 2002:a05:6a21:35c9:b0:133:d17d:193a with SMTP id ba9-20020a056a2135c900b00133d17d193amr2921719pzc.59.1691599888120; Wed, 09 Aug 2023 09:51:28 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id z11-20020a170902ee0b00b001bb7a736b4csm11452614plb.77.2023.08.09.09.51.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Aug 2023 09:51:27 -0700 (PDT) Content-Language: en-US In-Reply-To: <87h6p8mn5n.fsf@hyperspace> Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=jporterbugs@gmail.com; helo=mail-pf1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308489 Archived-At: On 8/9/2023 5:10 AM, Tony Zorman wrote: > by default, all of the `ansi-color-«COLOUR»' faces (defined in > `ansi-color.el') set the foreground and background colour to the exact > same value. [snip] > > --- > > […] this can result in hard to read text; for example: > > https://i.imgur.com/nZsh00N.png > > Notice the blue background in the bottom left corner. Have you customized your settings for "man" somehow (or maybe changed your pager)? I don't see colors that look like that at all. In fact, I only see black and white text (or vice versa), as I'd normally expect when looking at "man" output. It's all perfectly easy to read on my end. If you *have* customized some of your settings, maybe you just need to tweak them so that they don't produce unreadable output.