all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jari.aalto@cante.net (Jari Aalto+mail.emacs)
To: emacs-devel@gnu.org
Subject: Re: RFC: comint.el - comint-highlight-prompt and unreadable colors
Date: Mon, 26 Mar 2007 09:22:33 +0200	[thread overview]
Message-ID: <aby079l2.fsf@blue.sea.net> (raw)
In-Reply-To: buoircowocf.fsf@dhapc248.dev.necel.com

* Mon 2007-03-26 Miles Bader <miles.bader AT necel.com> gmane.emacs.devel
* Message-Id: buoircowocf.fsf AT dhapc248.dev.necel.com
> Jari Aalto <jari.aalto AT cante.net> 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

  reply	other threads:[~2007-03-26  7:22 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-25 10:53 RFC: comint.el - comint-highlight-prompt and unreadable colors Jari Aalto
2007-03-25 13:31 ` Miles Bader
2007-03-25 15:18   ` Jari Aalto
2007-03-25 20:11     ` Robert J. Chassell
2007-03-26  7:26       ` Jari Aalto+mail.emacs
2007-03-25 23:43     ` Miles Bader
2007-03-26  5:12       ` Jari Aalto
2007-03-26  5:44         ` Miles Bader
2007-03-26  7:22           ` Jari Aalto+mail.emacs [this message]
2007-03-26 20:59             ` Eli Zaretskii
2007-03-26  7:56           ` Romain Francoise
2007-03-26  9:24             ` Miles Bader
2007-03-26  9:34               ` Jari Aalto+mail.emacs
2007-03-26 10:05                 ` Miles Bader
2007-03-26 10:22                   ` Jari Aalto+mail.emacs
2007-03-26 12:17                     ` Miles Bader
2007-03-26 12:45                       ` tomas
2007-03-26 13:27                         ` Stefan Monnier
2007-03-26 21:08                           ` Eli Zaretskii
2007-03-27  1:34                           ` Miles Bader
2007-03-27  2:18                             ` Dan Nicolaescu
2007-03-27  4:02                               ` Miles Bader
2007-03-29 14:44                           ` tomas
2007-03-29 16:10                             ` Stefan Monnier
2007-03-30  5:16                               ` tomas
2007-03-26 14:51                       ` Jari Aalto+mail.emacs
2007-03-26 16:51                         ` Miles Bader
2007-03-26 13:28                     ` Robert J. Chassell
2007-03-26 16:24           ` Dan Nicolaescu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aby079l2.fsf@blue.sea.net \
    --to=jari.aalto@cante.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.