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: Tue, 04 Feb 2014 11:21:33 +1100 Message-ID: <87r47jybg2.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391473315 27718 80.91.229.3 (4 Feb 2014 00:21:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2014 00:21:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 04 01:22:03 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 1WATm5-0002XP-9T for ged-emacs-devel@m.gmane.org; Tue, 04 Feb 2014 01:22:01 +0100 Original-Received: from localhost ([::1]:50191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WATm4-0001j2-TN for ged-emacs-devel@m.gmane.org; Mon, 03 Feb 2014 19:22:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WATlv-0001gK-JQ for emacs-devel@gnu.org; Mon, 03 Feb 2014 19:21:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WATlp-0001jA-Lq for emacs-devel@gnu.org; Mon, 03 Feb 2014 19:21:51 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:41191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WATlp-0001it-F5 for emacs-devel@gnu.org; Mon, 03 Feb 2014 19:21:45 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WATln-0002O9-Bq for emacs-devel@gnu.org; Tue, 04 Feb 2014 01:21:43 +0100 Original-Received: from 203.7.155.73 ([203.7.155.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Feb 2014 01:21:43 +0100 Original-Received: from trentbuck by 203.7.155.73 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Feb 2014 01:21:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 203.7.155.73 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:169372 Archived-At: Barry OReilly writes: > I use graphical most of the time so don't generally notice terminal > display issues. Under this setup, the terminal colors are very > different from the graphical, but a brief look didn't uncover any poor > contrast. Probably because you were on a terminal that claimed 8-color support (16 if it treats bold as "bright colors"). With 256-color terminals, the difference is much less noticable. You can test easily with "tput colors". With the appropriate package installed (e.g. "ncurses-base" on Debian), you can change your terminal from e.g. TERM=xterm to TERM=xterm-256color, and Emacs will use nonstandard escape sequences to produce eight-bit colors. If you've also customized the basic 16 colors, this can look strange :-) M-x list-colors-display RET to have a look. If that looks mostly blue-green, you're mixing up 256 and 88 color terminals. This used to arise with urxvt; I don't know if it supports 256 colors yet. Eight-color sequences are portable between terminals, see tput(1) and terminfo(5) ref. setaf, setab, bold and sgr0. 88/256 color sequences are not portable, but IME all use the xterm sequences. For these, M-x find library RET term/xterm RET, also see xterm(1). I've avoided 256-color terminals for many years, because they oblige me to theme apps instead of just the terminal (and 8 colors is usually enough for me). Back when I did, I wrote some notes: http://www.cyber.com.au/~twb/doc/term256.txt Hopefully this brain dump is useful to someone :-)