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 14:06:02 +0800 [thread overview]
Message-ID: <87aaas69bp.fsf@gmail.com> (raw)
In-Reply-To: 83hb51ftt4.fsf@gnu.org
Eli Zaretskii <eliz@gnu.org> writes:
>> From: zwz <zhangweize@gmail.com>
>> Date: Sun, 28 Aug 2011 22:33:23 +0800
>>
>>
>> I use Emacs both in GUI mode and text mode. In text mode, however, it
>> only shows 8 colors (M-x list-color-display). So I create a consistent
>> color-theme for Emacs in both modes.
>>
>> But one thing still bothers me. In my system, framebuffer is enabled
> (by
>> KMS) and fbterm is adopted as the terminal, in which "tput colors"
> gives
>> 256, and I can watch movies on tty with mplayer. However, in Emacs,
> only
>> 8 colors available.
>>
>> I googled and found
>> http://code.google.com/p/fbterm/issues/detail?id=44,
>> in which one comment suggest the issue root in Emacs.
>>
>> Is it right
>
> No.
>
>> or is there any way to have 256 colors in Emacs (tty)?
>
> 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). 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.
next prev parent reply other threads:[~2011-08-29 6: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 [this message]
2011-08-29 6:34 ` Eli Zaretskii
2011-08-29 9:06 ` zwz
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
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=87aaas69bp.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 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).