| View previous topic :: View next topic |
| Author |
Message |
OdinsDream Veteran


Joined: 01 Jun 2002 Posts: 1057
|
Posted: Fri Nov 15, 2002 6:11 am Post subject: Bash - Color items are in bold, how to change to regular? |
|
|
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 |
|
 |
kutsuya Retired Dev


Joined: 21 Oct 2002 Posts: 189
|
Posted: Fri Nov 15, 2002 9:45 am Post subject: Re: Bash - Color items are in bold, how to change to regular |
|
|
| 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 |
|
 |
Mpemba Effect Apprentice


Joined: 18 Sep 2002 Posts: 156
|
Posted: Fri Nov 15, 2002 10:29 am Post subject: |
|
|
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 |
|
 |
OdinsDream Veteran


Joined: 01 Jun 2002 Posts: 1057
|
Posted: Fri Nov 15, 2002 7:32 pm Post subject: |
|
|
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 |
|
 |
OdinsDream Veteran


Joined: 01 Jun 2002 Posts: 1057
|
Posted: Fri Nov 15, 2002 7:41 pm Post subject: |
|
|
| ...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 |
|
 |
kutsuya Retired Dev


Joined: 21 Oct 2002 Posts: 189
|
Posted: Fri Nov 15, 2002 9:33 pm Post subject: |
|
|
| 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 |
|
 |
bludger Guru

Joined: 09 Apr 2003 Posts: 389
|
Posted: Wed Jul 30, 2003 9:06 am Post subject: |
|
|
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 |
|
 |
OdinsDream Veteran


Joined: 01 Jun 2002 Posts: 1057
|
Posted: Thu Jul 31, 2003 9:35 pm Post subject: |
|
|
| 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 |
|
 |
bludger Guru

Joined: 09 Apr 2003 Posts: 389
|
|
| Back to top |
|
 |
|