Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux console colors (tty)?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
Bill Cosby
Guru
Guru


Joined: 22 Jan 2005
Posts: 430
Location: Aachen, Germany

PostPosted: Wed Apr 11, 2012 7:19 am    Post subject: Linux console colors (tty)? Reply with quote

Hi there,

I was wondering, you can change the background and foreground colors in the Linux console (e.g. with setterm), but does anyone know where I can change the predefined colors for this?
I mean I can do "setterm -background blue", but where is defined what "blue" looks like? I figure this must be somewhere in the Kernel source, anyone knows anything about this?

Regards,
Bill
_________________
The Creature from Jekyll Island.
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Wed Apr 11, 2012 12:13 pm    Post subject: Reply with quote

Why did you post this topic in the "Off the Wall"?
Back to top
View user's profile Send private message
Bill Cosby
Guru
Guru


Joined: 22 Jan 2005
Posts: 430
Location: Aachen, Germany

PostPosted: Wed Apr 11, 2012 12:18 pm    Post subject: Reply with quote

ultraincognito wrote:
Why did you post this topic in the "Off the Wall"?

It is not "Gentoo specific", e.g. the line under "Gentoo Chat" says: "For general linux questions, see Off The Wall." :)
_________________
The Creature from Jekyll Island.
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Wed Apr 11, 2012 1:13 pm    Post subject: Reply with quote

The colors are in the /usr/bin/setterm. Info 100%.
Try:
Code:
# sed -i 's/white/test/' /usr/bin/setterm
# setterm -background test

and ascertain yourself.
Back to top
View user's profile Send private message
Frustie
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2007
Posts: 94
Location: My own little planet.

PostPosted: Wed Apr 11, 2012 2:40 pm    Post subject: Reply with quote

ultraincognito wrote:
The colors are in the /usr/bin/setterm. Info 100%.
Try:
Code:
# sed -i 's/white/test/' /usr/bin/setterm
# setterm -background test

and ascertain yourself.


knowingly telling people to break their environment is NOT the otw way.
making fun of them is :)
_________________
If we ignore it maybe it will go away.
Back to top
View user's profile Send private message
Bill Cosby
Guru
Guru


Joined: 22 Jan 2005
Posts: 430
Location: Aachen, Germany

PostPosted: Wed Apr 11, 2012 10:09 pm    Post subject: Reply with quote

ultraincognito wrote:
The colors are in the /usr/bin/setterm. Info 100%.
Try:
Code:
# sed -i 's/white/test/' /usr/bin/setterm
# setterm -background test

and ascertain yourself.

Ya, well, thanks for not helping.

So does anyone know where the colors are defined in the kernel?
_________________
The Creature from Jekyll Island.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum