Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-02-2016, 08:49 AM   #1
Registered: Mar 2011
Posts: 84

Rep: Reputation: 7
Console default coloring on CRUX 3.2 with Bash 4.3.42

This is almost embarrassingly basic, but I've realized that Crux 3.2's default shell coloring at init 2 is grey, not white. The screen on my X61 tablet is kinda dim, so I'm hoping to amp up the visibility a bit by changing the default console color to white instead of grey.

I've seen a lot of the PS1 variable stuff and had some good results with that, but the text coming *after* my prompt is still grey.

I also wonder if there's a way to change it at the kernel level so the initial dmesg output is white as well - where is the default color set?

Thanks in advance.


So I saw a coworker of mine had great results with 'setterm --bold on' but it doesn't make any difference for me.
I know my screen can render a brighter white because my PS1 variable shows my current working directory as bright white, and that's fine.

Possible Answer:
The "right" answer, or less sloppy answer would be to do 'setterm --bold on' where it works. I still have no clue why it's not working for me.
My workaround was to edit the vary last part of my PS1 variable with '\[\033[1m' which is the escape code for bold.

Last edited by VolumetricSteve; 03-02-2016 at 01:41 PM. Reason: Possible Answer
Old 03-03-2016, 01:03 AM   #2
LQ Addict
Registered: Dec 2013
Posts: 5,928

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
look into tput to change colors.

but really, you should change the default colors.

i have no clue about crux, but on my system it's in /etc/vconsole.conf


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
[SOLVED] Bash coloring on a script output... cab00t Linux - Newbie 14 06-03-2014 10:47 PM
[SOLVED] BASH - finding and coloring a whole line prentmee Linux - General 4 12-12-2012 09:08 AM
[SOLVED] bash coloring output Jerry Mcguire Programming 1 08-11-2011 01:44 AM
[SOLVED] Setting function default in a bash script - Bash sixtensixone Linux - General 13 01-08-2011 01:44 PM
bash ls not coloring files, directories etc mr_smith Red Hat 2 08-30-2006 07:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:59 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