LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-02-2016, 08:49 AM   #1
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

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.

Edit:

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
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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
 
  


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
[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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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