LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2017, 12:18 PM   #1
Bad Blue Bull
LQ Newbie
 
Registered: Jul 2017
Posts: 19

Rep: Reputation: Disabled
16 color for Emacs in vt


Hi. My text console can display 16 colors but when I call list-colors-display in Emacs it lists only first 8 despite as I can see in uses bright colors (for buffer name in mode line for example). Tried palette-pick-foreground-at-point (palette.el) but it shows same values for normal and bright ones. As said in manual "If you run the command on a text terminal, it shows only a small subset of colors that can be safely displayed on such terminals", so the problem is how does Emacs decide how many colours are available (tput colors returns 8), any suggestions?
------------
update: okay, I've tried to do a hack, in src/term.c substituted
Code:
tty->TN_max_colors = tgetnum ("Co");
with
Code:
tty->TN_max_colors = 16;
but no effect.
------------
update: okay I see I need to research tty-colors.el.gz

Last edited by Bad Blue Bull; 09-18-2017 at 09:16 PM.
 
Old 09-19-2017, 07:30 PM   #2
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 602

Rep: Reputation: 72
emacs has its own support forum. I've usually gotten better responses from specialty fora.
 
Old 09-21-2017, 07:32 PM   #3
Bad Blue Bull
LQ Newbie
 
Registered: Jul 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
OK, it's solved. When face's weight is bold text of such face is printed in bright color in tty. Only foreground color is affected, background can't be made bright (I'm using framebuffer, with 80x25 textmode only 8 colors are available).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
add color to emacs lilili Linux - Software 3 01-25-2008 05:41 AM
emacs color schemes Four Linux - Newbie 1 10-19-2006 01:11 PM
emacs color schemes Four Linux - Newbie 2 10-08-2006 03:53 PM
color in emacs esromneb Linux - Software 2 07-17-2003 05:10 PM
how to change bg and fg color in emacs linux_rookie Linux - Software 1 06-23-2001 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration