View previous topic :: View next topic |
Author |
Message |
miscreant n00b
Joined: 12 Jul 2003 Posts: 21 Location: Atlanta
|
Posted: Tue Aug 05, 2003 3:01 am Post subject: changing the default terminal color |
|
|
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 |
|
|
simonbh n00b
Joined: 24 Sep 2002 Posts: 28
|
Posted: Tue Aug 05, 2003 6:03 am Post subject: answer? |
|
|
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 |
|
|
miscreant n00b
Joined: 12 Jul 2003 Posts: 21 Location: Atlanta
|
Posted: Tue Aug 05, 2003 6:15 am Post subject: Re: answer? |
|
|
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 |
|
|
di1bert l33t
Joined: 16 May 2002 Posts: 963 Location: Oslo, Norway
|
Posted: Tue Aug 05, 2003 10:01 am Post subject: |
|
|
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 |
|
|
MathFreak Apprentice
Joined: 07 Jul 2002 Posts: 217 Location: Bethlehem, PA
|
Posted: Tue Aug 05, 2003 12:30 pm Post subject: |
|
|
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 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 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 will reset the terminal. |
|
Back to top |
|
|
miscreant n00b
Joined: 12 Jul 2003 Posts: 21 Location: Atlanta
|
Posted: Tue Aug 05, 2003 3:05 pm Post subject: |
|
|
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 |
|
|
|