From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs -nw conflicts with (set-foreground-color "xxx") Date: Tue, 09 Oct 2007 23:50:27 +0200 Message-ID: References: <1191867040.227702.174990@57g2000hsv.googlegroups.com> <1191904073.568407.236850@g4g2000hsf.googlegroups.com> <2BB8C099-B10F-4663-90EB-38DBB65E5F3C@Web.DE> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1191966657 17648 80.91.229.12 (9 Oct 2007 21:50:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2007 21:50:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 09 23:50:54 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IfMyZ-00058V-DO for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Oct 2007 23:50:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfMyT-0001t0-R8 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Oct 2007 17:50:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfMyG-0001sl-I8 for help-gnu-emacs@gnu.org; Tue, 09 Oct 2007 17:50:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfMyE-0001sZ-4j for help-gnu-emacs@gnu.org; Tue, 09 Oct 2007 17:50:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfMyD-0001sW-VU for help-gnu-emacs@gnu.org; Tue, 09 Oct 2007 17:50:30 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfMyD-00076s-65 for help-gnu-emacs@gnu.org; Tue, 09 Oct 2007 17:50:29 -0400 Original-Received: from HOME-C4E4A596F7 ([81.5.45.170]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id JBN86899 (AUTH halo1); Tue, 9 Oct 2007 23:50:16 +0200 (IST) In-reply-to: <2BB8C099-B10F-4663-90EB-38DBB65E5F3C@Web.DE> (message from Peter Dyballa on Tue, 9 Oct 2007 11:09:57 +0200) X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48276 Archived-At: > From: Peter Dyballa > Date: Tue, 9 Oct 2007 11:09:57 +0200 > Cc: help-gnu-emacs@gnu.org > > (Personally I don't see any reason why GNU Emacs, when running > without windows inside a terminal emulation, should use other colours > then those I've chosen for the host, i.e. the terminal emulation. Because it simply cannot know what you've chosen. As I explained elsewhere in this thread, Emacs simply asks the terminal to display color number N and _assumes_ that each number corresponds to the color in the normal ANSI 8-color sequence. There's no general-purpose API (AFAIK) to query Posix-standard terminal driver for the actual colors that correspond to each color number.