Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-18-2017, 11:18 AM   #1
Bad Blue Bull
LQ Newbie
Registered: Jul 2017
Posts: 28

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
tty->TN_max_colors = tgetnum ("Co");
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 08:16 PM.
Old 09-19-2017, 06:30 PM   #2
Registered: Mar 2010
Distribution: Slackware
Posts: 855

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

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).


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 04:41 AM
emacs color schemes Four Linux - Newbie 1 10-19-2006 12:11 PM
emacs color schemes Four Linux - Newbie 2 10-08-2006 02:53 PM
color in emacs esromneb Linux - Software 2 07-17-2003 04:10 PM
how to change bg and fg color in emacs linux_rookie Linux - Software 1 06-23-2001 07:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

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