From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: trentbuck@gmail.com (Trent W. Buck) Newsgroups: gmane.emacs.devel Subject: Re: How do I avoid purple-on-black and yellow-on-white? Date: Mon, 03 Feb 2014 10:47:56 +1100 Message-ID: <87sis1vzyr.fsf@gmail.com> References: <52EEBA71.3070202@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391384900 15004 80.91.229.3 (2 Feb 2014 23:48:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Feb 2014 23:48:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 03 00:48:27 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 1WA6m3-0005tb-Mc for ged-emacs-devel@m.gmane.org; Mon, 03 Feb 2014 00:48:27 +0100 Original-Received: from localhost ([::1]:43170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA6m3-0001mI-BM for ged-emacs-devel@m.gmane.org; Sun, 02 Feb 2014 18:48:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA6lu-0001lQ-Kk for emacs-devel@gnu.org; Sun, 02 Feb 2014 18:48:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WA6ln-0007lW-2O for emacs-devel@gnu.org; Sun, 02 Feb 2014 18:48:18 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:47394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA6lm-0007lN-Pd for emacs-devel@gnu.org; Sun, 02 Feb 2014 18:48:10 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WA6ll-0005oO-36 for emacs-devel@gnu.org; Mon, 03 Feb 2014 00:48:09 +0100 Original-Received: from 203.7.155.76 ([203.7.155.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Feb 2014 00:48:09 +0100 Original-Received: from trentbuck by 203.7.155.76 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Feb 2014 00:48:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 203.7.155.76 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:169349 Archived-At: Bruce Korb writes: > I needed to use emacs in a terminal window that was in reverse mode -- > background black. I was completely unable to read any of the prompts > without highlighting the text because the prompts are all purple. > Somehow, those two combinations need to be prevented. Completely. > Entirely. Never allowed to happen at all. It should not be up to a > hapless user to figure out how to configure coloration. It's too > hard. Thanks you! :) Emacs already does this for red foreground in eight-color terminals, which IMO is bloody daft. If X on Y is hard to read in your terminal, FIX YOUR TERMINAL. Don't reconfigure all your apps to avoid X/Y. For example, I have this in ~/.profile when $TERM is linux: ## Use tango theme in 256-colour framebuffer console. printf '\033]P%s' \ 02E3436 1CC0000 24E9A06 3C4A000 43465A4 575507B 606989A 7D3D7CF \ 8555753 9EF2929 A8AE234 BFCE94F C729FCF DAD7FA8 E34E2E2 FEEEEEC ## Use a darker white, so it can be distinguished from ## brightwhite without overstriking. Use *black* black. printf '\033]P%s' 0000000 7AAAAAA For urxvt and xterm, use .Xresources; for libvte terminals there is usually a menu option under something like Edit > Current Profile. PS: most Emacs modes have two default color schemes -- dark background and light background. Because it can't ask the terminal, Emacs assumes all terminals are dark background. The easiest way to override that is "emacs -fg black -bg white". PPS: that's from memory, mostly of 22/23, so may be invalid now.