LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-13-2020, 05:29 AM   #1
bong.mau
Member
 
Registered: Apr 2004
Posts: 391

Rep: Reputation: 30
TTY color


Hi
env debian 9.9 framebuffer tty
prb running a test pgm,
the yellow color displays red on tty and lxterminal
displays correctly with urxvt
to further debugging i installed colortest package and
colortest-16 give the same results ...
looking at .fbtermrc it states
____________________________________________________
# default color of foreground/background text
# available colors: 0 = black, 1 = red, 2 = green, 3 = brown, 4 = blue,
# = magenta, 6 = cyan, 7 = white
_______________________________________________________________

YELLOW IS NOT AVAILABLE !!!
How is possible ,it uses brown and not yellow !!

Question ...
i find the problem ?
any circunvention .. or bypass ?
any help will be appreciated
Maurizio
 
Old 05-13-2020, 07:16 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by bong.mau View Post
YELLOW IS NOT AVAILABLE !!!
Well, bold brown may be displayed as yellow on the console. Try
Code:
tput setaf 3
tput bold
tput sgr0
 
1 members found this post helpful.
Old 05-13-2020, 08:16 AM   #3
bong.mau
Member
 
Registered: Apr 2004
Posts: 391

Original Poster
Rep: Reputation: 30
more info

Hi
i did not explain my requirements ...
i do not need to change the default display color ...
my tty and lxterminal console displays withe on black and it 'is fine
i write a pgm that use console color to display data ...
if inside the pgm i specify "yellow" the text is displayed "brown" ..all the other colors works ..if i specify "bight yellow" it correctly displays bight yellow ...
i create a test pgm to test all 8 color + highlight (16 colors)
if i run the same program inside urxvt console it correctly displays all colors ...
the problem is only on "tty" and "lxterminal"
Maurizio
 
Old 05-13-2020, 08:19 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Yes, it's historical. CGA displays used to have special hardware that modified dark yellow -- which had an unpleasant sort of mustardy green hue -- into a more pleasant brown colour. If you're really interested, take a look at the wikipedia page on CGA some time.

Of course the advent of full 24-bit RGB on later displays changed the game, but the first 16 colours on the framebuffer console continue to use these old CGA colours by default¹.

--
¹ I actually like them, and configure my xterms to match.
 
Old 05-13-2020, 12:28 PM   #5
bong.mau
Member
 
Registered: Apr 2004
Posts: 391

Original Poster
Rep: Reputation: 30
Thanks

Hi GazL
Thanks for the answer
Maurizio
 
  


Reply



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
[SOLVED] how to redirect a terminal/tty out put to other terminal/tty golden_boy615 Linux - General 4 12-18-2010 01:59 AM
How to reset/restart a tty from another tty? armandino Linux - General 4 02-25-2009 03:09 AM
can a tty execute command on another tty? BeacoN Linux - Desktop 3 11-08-2008 09:39 AM
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 08:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:21 PM.

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
Open Source Consulting | Domain Registration