From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Turning off colorization Date: Mon, 10 Nov 2014 18:21:46 +0200 Message-ID: <831tpbni05.fsf@gnu.org> References: <87a944cm3x.fsf@moondust.localdomain> <83r3xfs8mx.fsf@gnu.org> <83r3xeqfa9.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1415636578 23643 80.91.229.3 (10 Nov 2014 16:22:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2014 16:22:58 +0000 (UTC) Cc: nljlistbox2@gmail.com, larsi@gnus.org, rms@gnu.org, cloos@jhcloos.com, emacs-devel@gnu.org To: Mirek Kaim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 10 17:22:50 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xnrjs-0001P5-3E for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2014 17:22:48 +0100 Original-Received: from localhost ([::1]:44002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xnrjr-0000Q9-MJ for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2014 11:22:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xnrj8-00080p-NO for emacs-devel@gnu.org; Mon, 10 Nov 2014 11:22:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xnrj3-0002zl-Ir for emacs-devel@gnu.org; Mon, 10 Nov 2014 11:22:02 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xnrj3-0002zV-BO; Mon, 10 Nov 2014 11:21:57 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NET00500ZNOIU00@a-mtaout21.012.net.il>; Mon, 10 Nov 2014 18:21:55 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEU0052M04JFC30@a-mtaout21.012.net.il>; Mon, 10 Nov 2014 18:21:55 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176688 Archived-At: > From: Mirek Kaim > Date: Mon, 10 Nov 2014 16:29:11 +0100 > Cc: "nljlistbox2@gmail.com" , > Eli Zaretskii , "rms@gnu.org" , > "emacs-devel@gnu.org" > > i think it's best to use 'do we have at least 256-color support' instead. how do you want to determine what the background rgb values are? the name of the color doesn't mean anything, people use themes for terminals. when theme is reasonable, it may work, more or less (probably less), but if colors are totally different than their names suggest, it's all bound to be wrong. Please take a look at lisp/term/xterm.el: modern terminal emulators report their background color as rgb:NUM1/NUM2/NUM3 rgb triplets. This allows Emacs to interpret the color itself, not its name.