Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bash - Color items are in bold, how to change to regular?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Fri Nov 15, 2002 6:11 am    Post subject: Bash - Color items are in bold, how to change to regular? Reply with quote

When bash displays items in my shell in color, it looks like the font it's using is in bold.

Is there a way to change this, so that bash always tries to use normal font weight? These fonts bleed together on my screen, but the other fonts are very crisp.
Back to top
View user's profile Send private message
kutsuya
Retired Dev
Retired Dev


Joined: 21 Oct 2002
Posts: 189

PostPosted: Fri Nov 15, 2002 9:45 am    Post subject: Re: Bash - Color items are in bold, how to change to regular Reply with quote

OdinsDream wrote:
When bash displays items in my shell in color, it looks like the font it's using is in bold.

Is there a way to change this, so that bash always tries to use normal font weight? These fonts bleed together on my screen, but the other fonts are very crisp.


Hi,

Need some more detail. Like are you running bash in a GUI environment? If yes, what console program are you using? (In otherwords, how can I recreate or find the situation on my computer?)

For example , in KDE's Konsole program it's not difficult to change font, font size, or font style. Along with other options...

Regards,

--Kutsuya
Back to top
View user's profile Send private message
Mpemba Effect
Apprentice
Apprentice


Joined: 18 Sep 2002
Posts: 156

PostPosted: Fri Nov 15, 2002 10:29 am    Post subject: Reply with quote

Take a look in your /etc/DIR_COLORS - it's quite self explainatory, you just replace 01 with 00 to make them "unbold" ... read the txt in the file :)
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Fri Nov 15, 2002 7:32 pm    Post subject: Reply with quote

Sorry for lack of detail...

My original question involved the bash prompt, anywhere in the system. The default prompt is:

odinsdream@samara odinsdream $ ls --aoh

Where the colored information is displayed in bold. Mpemba Effect brought up the ls command, which I had completely forgotten also has the same trouble. Thanks for the help Mpemba Effect, I have a feeling your solution can be somehow applied to the bash prompt as well.
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Fri Nov 15, 2002 7:41 pm    Post subject: Reply with quote

...Maybe I just need to give up my xterm ways, this doesn't seem to be a problem at all in Eterm. I'll just work on setting up Eterm. Thanks guys.
Back to top
View user's profile Send private message
kutsuya
Retired Dev
Retired Dev


Joined: 21 Oct 2002
Posts: 189

PostPosted: Fri Nov 15, 2002 9:33 pm    Post subject: Reply with quote

OdinsDream wrote:
Sorry for lack of detail...

My original question involved the bash prompt, anywhere in the system. The default prompt is:

odinsdream@samara odinsdream $ ls --aoh

Where the colored information is displayed in bold. Mpemba Effect brought up the ls command, which I had completely forgotten also has the same trouble. Thanks for the help Mpemba Effect, I have a feeling your solution can be somehow applied to the bash prompt as well.


Oh, I see now. You can see your current prompt settings with: echo $PS1

This looks like an ok bash prompt HowTo: http://www.dreaming.org/~giles/bashprompt/

It mentioned something interesting:
Quote:
Daniel Dui (ddui@iee.org) points out that to be strictly accurate, we must mention that the list above is for colours at the console. In an xterm, the code 1;31 isn't "Light Red," but "Bold Red." This is true of all the colours.


Enjoy. :)

--Kutsuya
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Wed Jul 30, 2003 9:06 am    Post subject: Reply with quote

I also have had a problem with bold fonts, which for me (perhaps due to having thick glasses, which can make colours a problem) are unreadable, especially with a white background.

I fixed this problem independantly recently and was going to post some short instructions and then found this old post. Rather than create a new thread, I thought I would just add to this one.

What I did was to edit /etc/profile and replace

export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
with
export PS1='\[\033[00;31m\]\h \[\033[00;34m\]\W \$ \[\033[00m\]'

Then I edited /etc/DIR_COLORS and changed all instances of "01;xy" to "00;xy". Now my fonts are readable.

You have to take care when you do an emerge that updates these files. Don't simply copy over the ._cfgxxx files, but edit them accordingly.

Do others have the same problem, or is it just those with thick glasses? Do others agree that gentoo should change this in the default setup? If so, should I write a bug report?
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Thu Jul 31, 2003 9:35 pm    Post subject: Reply with quote

bludger wrote:
I also have had a problem with bold fonts, which for me (perhaps due to having thick glasses, which can make colours a problem) are unreadable, especially with a white background.

I fixed this problem independantly recently and was going to post some short instructions and then found this old post. Rather than create a new thread, I thought I would just add to this one.

What I did was to edit /etc/profile and replace

export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
with
export PS1='\[\033[00;31m\]\h \[\033[00;34m\]\W \$ \[\033[00m\]'

Then I edited /etc/DIR_COLORS and changed all instances of "01;xy" to "00;xy". Now my fonts are readable.

You have to take care when you do an emerge that updates these files. Don't simply copy over the ._cfgxxx files, but edit them accordingly.

Do others have the same problem, or is it just those with thick glasses? Do others agree that gentoo should change this in the default setup? If so, should I write a bug report?


I have this problem mostly because of the fact that I wear glasses. But, I do prefer normal weight fonts to bold fonts, in general.

Do what you can. I'd like to see this be the default behaviour.
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Fri Aug 01, 2003 6:22 am    Post subject: Reply with quote

Ok bug added:
https://bugs.gentoo.org/show_bug.cgi?id=25683
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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