Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
changing the default terminal color
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
miscreant
n00b
n00b


Joined: 12 Jul 2003
Posts: 21
Location: Atlanta

PostPosted: Tue Aug 05, 2003 3:01 am    Post subject: changing the default terminal color Reply with quote

I'm wondering if there is a way to change the default terminal color. Not an x-term, but for the non-Xfree logins. I've changed the prompt to display basic command output and stuff in the color I want, but the problem comes in when I open an editor (nano for example) in that it uses the default color (gray). Since I have a framebuffer image, the gray doesn't show up very well on top of it. So does anyone know if it's possible to change the default color to white?

miscreant
Back to top
View user's profile Send private message
simonbh
n00b
n00b


Joined: 24 Sep 2002
Posts: 28

PostPosted: Tue Aug 05, 2003 6:03 am    Post subject: answer? Reply with quote

I believe that you would have to modify nano's source code to change the grey color. As far as the terms go, I have no idea.
Back to top
View user's profile Send private message
miscreant
n00b
n00b


Joined: 12 Jul 2003
Posts: 21
Location: Atlanta

PostPosted: Tue Aug 05, 2003 6:15 am    Post subject: Re: answer? Reply with quote

simonbh wrote:
I believe that you would have to modify nano's source code to change the grey color. As far as the terms go, I have no idea.


Actually, I think I figured it out and I need to change the config file for my framebuffer image to set the font color. Have to wait until emerge finishes compiling some stuff before I can test and see if that solves the problem though.

miscreant
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Tue Aug 05, 2003 10:01 am    Post subject: Reply with quote

Please let me know how you sorted it out. I am struggling with the default blue that is used in the console as I can't see it if the light is too bright and I would like to change it to something like cyan or something...

-- di1bert
_________________
choff.
Back to top
View user's profile Send private message
MathFreak
Apprentice
Apprentice


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Tue Aug 05, 2003 12:30 pm    Post subject: Reply with quote

There are also escape codes which should probably work in any console or terminal - X or otherwise. All escape codes are prefixed with "^[", which you get by typing
Code:
CTRL-V, ESC
Now to change the foreground and background, you just use the escape code in the format
Code:
echo "^[[{attribute};{foreground color};{background color}m"
and there's a really good explanation here

Now, if you want to get really tricky, you can even change the palette with escape codes. The basic format for that is
Code:
echo "^[]Pnrrggbb"
where n, rr, gg, are bb are all hex numbers. n is the palette color and rr, gg, and bb are the red, green, and blue values, resepectively. And if you decide you don't like it
Code:
 echo "^[]R"
will reset the terminal.
Back to top
View user's profile Send private message
miscreant
n00b
n00b


Joined: 12 Jul 2003
Posts: 21
Location: Atlanta

PostPosted: Tue Aug 05, 2003 3:05 pm    Post subject: Reply with quote

di1bert wrote:
Please let me know how you sorted it out. I am struggling with the default blue that is used in the console as I can't see it if the light is too bright and I would like to change it to something like cyan or something...


Well, it turned out for me that I had to change a setting in my bootsplash config file and then create the initrd image again. I had fgcolor=8 which is dark gray evidently, so I changed it to fgcolor=15 and now all is good.

miscreant
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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