all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zwz <zhangweize@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Is it possible to have 256 colors in Emacs on framebuffer-enabled tty
Date: Mon, 29 Aug 2011 17:06:03 +0800	[thread overview]
Message-ID: <8762lg60zo.fsf@gmail.com> (raw)
In-Reply-To: E1QxvQc-00010U-NL@fencepost.gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: zwz <zhangweize@gmail.com>
>> Date: Mon, 29 Aug 2011 14:06:02 +0800
>> 
>> > First, your terminal should report to Emacs that it has 256 colors.
>> > Does it?
>> How to get the report?
>> In bash, the cmd "tput colors" reports 256.
>> While in Emacs, it does show 256 color *names* (by M-x
>> list-color-display).
>
> list-color-display _is_ the correct way.
>
>> But in fact only the first 8 colors are showable,
>> as the 8 color names are shown in the background with the
> corresponding
>> color; the other color names are shown with no color background.
>
> What are the names of the other colors, beyond the first 8, shown by
> list-color-display?

I made some mistake. The problem "tput color -> 256; Emacs -> 256 but in
fact 8" only happens when I set TERM=xterm-256color, which is not the
case since I am actually using fbterm.


When I set TERM=fbterm. "tput color" also reports 256; while in Emacs
list-color-display just shows 8 colors. The issue remains.


BTW, the other color names are (when TERM=xterm-256color):
brightblack	       brightblack							      #7f7f7f
brightred	       brightred							      #ff0000
brightgreen	       brightgreen							      #00ff00
brightyellow	       brightyellow							      #ffff00
brightblue	       brightblue							      #5c5cff
brightmagenta	       brightmagenta							      #ff00ff
brightcyan	       brightcyan							      #00ffff
brightwhite	       brightwhite							      #ffffff
color-16	       color-16								      #000000
color-17	       color-17								      #00005f
...
color-255	       color-255							      #eeeeee


>
> Also, which of the lisp/term/*.el files is being loaded by Emacs on
> startup for that terminal?
How can I tell which lisp/term/*.el is loaded?




  reply	other threads:[~2011-08-29  9:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-28 14:33 Is it possible to have 256 colors in Emacs on framebuffer-enabled tty zwz
2011-08-28 15:18 ` Eli Zaretskii
2011-08-29  6:06   ` zwz
2011-08-29  6:34     ` Eli Zaretskii
2011-08-29  9:06       ` zwz [this message]
2011-08-29  9:42         ` Eli Zaretskii
2011-08-29 22:01         ` David De La Harpe Golden
2011-08-30 14:05           ` zwz
2011-08-30 17:58             ` Eli Zaretskii
2011-08-31 16:23               ` Wolfgang Jenkner
2011-08-31 17:44                 ` Eli Zaretskii
2011-09-01 14:35                   ` zwz
2011-09-01 15:37                     ` Eli Zaretskii
2011-09-01 14:28                 ` zwz
2011-09-01 15:36                   ` 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

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

  git send-email \
    --in-reply-to=8762lg60zo.fsf@gmail.com \
    --to=zhangweize@gmail.com \
    --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.