From: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: face colors on 256 colors terminals
Date: Wed, 06 Apr 2005 10:52:26 -0700 [thread overview]
Message-ID: <200504061752.j36HqSAH012245@scanner2.ics.uci.edu> (raw)
In-Reply-To: <01c53acd$Blat.v2.4$7c0f2080@zahav.net.il> (Eli Zaretskii's message of "Wed, 06 Apr 2005 20:23:24 +0300")
"Eli Zaretskii" <eliz@gnu.org> writes:
> > From: Dan Nicolaescu <dann@ics.uci.edu>
> > Date: Wed, 06 Apr 2005 01:17:11 -0700
> >
[snip]
> So I think the code in tty-colors.el is correct in this matter. It
> is, however, possible that the RGB values in color-name-rgb-alist were
> incorrectly scaled from 8-bit variants, and need to be amended.
Agreed. The problem seems to be that tty-colors.el and color-name-rgb-alist
don't use the same of scaling.
Do you want me to do check if rescaling the values in
color-name-rgb-alist gives good results?
>
> > With this fixes the gray colors are mapped linearly, and so are the
> > red1, blue1 and green1 colors (I checked the pixels in a screenshot).
>
> Does ``this fix'' above refer to the changes in xterm.el alone, or to
> the change in tty-colors.el as well? I think we should make the
> changes in xterm.el, but not in tty-colors.el.
By "fixes" I meant all the patches that I posted together, I did not
test them separately. (anyway the tty-colors.el patch should have zero
influence on what I saw because AFAICT that code path is only used
when creating a color from #RGB, xterm-register-default-colors does
its own scaling).
If you don't want the tty-colors.el changes, then ene of the changes
in xterm.el, the one to xterm-rgb-convert-to-16bit is not good, it
should be
(lsh prim 8)
instead of:
(logior prim (lsh prim 8))
The patch to xterm-standard-colors is obviously correct, so I could
check that in right now if you want.
> > Some standard face definitions use colors like "red" or "blue". They
> > should be changed "red1" (or "blue1")
>
> Yes, I agree. Can you post a patch to do that?
Will do.
> And thank _you_ for working on this.
Well that you too, our private mail discussion put me on the right
track to find out what the problem was.
--dan
next prev parent reply other threads:[~2005-04-06 17:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-06 8:17 face colors on 256 colors terminals Dan Nicolaescu
2005-04-06 17:23 ` Eli Zaretskii
2005-04-06 17:36 ` David Kastrup
2005-04-06 17:46 ` Eli Zaretskii
2005-04-06 18:03 ` David Kastrup
2005-04-06 18:26 ` Dan Nicolaescu
2005-04-07 20:43 ` James Cloos
2005-04-08 1:17 ` Dan Nicolaescu
2005-04-08 10:52 ` Eli Zaretskii
2005-04-08 15:13 ` Dan Nicolaescu
2005-04-09 8:06 ` Eli Zaretskii
2005-04-06 17:52 ` Dan Nicolaescu [this message]
[not found] ` <01c53aea$Blat.v2.4$16ee4740@zahav.net.il>
2005-04-06 23:50 ` Dan Nicolaescu
2005-04-07 0:22 ` David Kastrup
2005-04-07 3:58 ` Eli Zaretskii
2005-04-07 5:14 ` Dan Nicolaescu
2005-04-07 10:23 ` David Kastrup
2005-04-08 1:13 ` Dan Nicolaescu
2005-04-07 3:55 ` Eli Zaretskii
[not found] ` <200504062134.j36LY8AH022227@scanner2.ics.uci.edu>
2005-04-07 3:53 ` Eli Zaretskii
2005-04-07 18:27 ` Dan Nicolaescu
2005-04-08 10:54 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200504061752.j36HqSAH012245@scanner2.ics.uci.edu \
--to=dann@ics.uci.edu \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).