From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Ansi-color uses the same values for fore- and background colours Date: Wed, 09 Aug 2023 16:28:40 +0300 Message-ID: <83msz0l4zb.fsf@gnu.org> References: <87h6p8mn5n.fsf@hyperspace> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6921"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, info@protesilaos.com To: Tony Zorman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 09 15:28:51 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 1qTjF3-0001bh-SJ for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Aug 2023 15:28:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTjEa-0006tg-Sm; Wed, 09 Aug 2023 09:28:20 -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 1qTjEY-0006su-HV for emacs-devel@gnu.org; Wed, 09 Aug 2023 09:28:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTjEX-0008SD-LT; Wed, 09 Aug 2023 09:28:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=GDq3eiigfIM6tt72b+OsE5ToYRmL3EyKyniy1r5WYUE=; b=U6aM1im0nsD/jjGy4pLk yEMrhqcI9HwOliQLTIB/RzwLL2Ks4gUFrT0R3q2kCDQWp4GtimhKkLV/nN2IKMOQJnLKayA6nwD/x f5Ra8v6V6wxmiHHMNnntED1StSJ487oPdh3fpKm87CGML/9wUTo0oCrsaQMtTMpJnzbzSJFMiDun4 gchEnx1yJAlha6DzFawXvsjc7Jwo0q3pZbWDr2WdlYxg79ppYNrgBT6+aXXBpCJJKhv9sb1xBcwHX T0v6HKuV0uKccElQYfQKi4Ohf8L+kngKKEx/rNS46qeB0c/E8QqvRqHxo2EkOfJgGMxUgLpAmCuIl 6H9c2LRzFEp6Bw==; In-Reply-To: <87h6p8mn5n.fsf@hyperspace> (message from Tony Zorman on Wed, 09 Aug 2023 14:10:44 +0200) 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:308478 Archived-At: > From: Tony Zorman > Date: Wed, 09 Aug 2023 14:10:44 +0200 > > 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. I believe this is intentional: that's how ANSI SGR sequences work on terminals, right? The expectation is that no one in their right mind will send SGR sequences that set both foreground and background colors to the same color, because that would make the text illegible.