From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jari.aalto@cante.net (Jari Aalto+mail.emacs) Newsgroups: gmane.emacs.devel Subject: Re: RFC: comint.el - comint-highlight-prompt and unreadable colors Date: Mon, 26 Mar 2007 09:22:33 +0200 Organization: Private Message-ID: References: <87y7llxxdu.fsf@catnip.gol.com> <87slbsyjn7.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174893862 4465 80.91.229.12 (26 Mar 2007 07:24:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 07:24:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 09:24:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVjYs-0005l6-FT for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 09:24:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVjb4-00030x-LH for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 02:26:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVjb1-00030r-He for emacs-devel@gnu.org; Mon, 26 Mar 2007 03:26:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVjax-0002za-11 for emacs-devel@gnu.org; Mon, 26 Mar 2007 03:26:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVjaw-0002zX-T9 for emacs-devel@gnu.org; Mon, 26 Mar 2007 02:26:22 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVjYi-0008BP-5q for emacs-devel@gnu.org; Mon, 26 Mar 2007 03:24:04 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HVjYE-0005fc-Cr for emacs-devel@gnu.org; Mon, 26 Mar 2007 09:23:34 +0200 Original-Received: from a81-197-175-198.elisa-laajakaista.fi ([81.197.175.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Mar 2007 09:23:34 +0200 Original-Received: from jari.aalto by a81-197-175-198.elisa-laajakaista.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Mar 2007 09:23:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: a81-197-175-198.elisa-laajakaista.fi User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:VfDLYAHv27I41DBD1cfp5lr8M6k= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68577 Archived-At: * Mon 2007-03-26 Miles Bader gmane.emacs.devel * Message-Id: buoircowocf.fsf AT dhapc248.dev.necel.com > Jari Aalto writes: > >> Have a look at these: >> >> 1) On Windows, terminal Putty, which is very popular free SSH terminal. >> >> http://cante.net/~jaalto/tmp/bug/emacs/m-x-shell-color--win32-putty.jpg > ... >> 2) On windows, displaying a rxvt terminal back to the Cygwin X11 server >> from a Unix host using "-bg black -fg snow" >> >> http://cante.net/~jaalto/tmp/bug/emacs/m-x-shell-color--rxvt-cygwin-X11.jpg > > In both cases it looks like Emacs doesn't realize that it's on a > dark-background terminal, and is using light-background mode (which > indeed defaults to a darkish blue for comint prompts). > > This is a common problem, because Emacs generally _cannot_ tell the > background color on a terminal, so it has to guess; I don't know about > windows, but on X11 it defaults to assuming dark-background on terminals > unless the TERM environment variable is "xterm". If TERM = "xterm", > Emacs assumes a light background. > > Since rxvt sets TERM to "xterms", that's almost certainly what's > happening in the 2nd case. On windows, I don't know, but it's probably > a similar problem. > > You can override what background mode emacs uses by customizing the > variable `frame-background-mode'. The problem is that many people will hit this. The putty is very popular on Windows side. May I suggest that the default is changed to 'bold instead of cyan. That would probably be more safer choice now when 22 turns colors on by default. Jari