You are not logged in.
I've googled and schmoogled, man-paged and schman-paged and can find nothing on how to change font color in the consol, not in an x-terminal or eterm or the like but in the console you have available at run level 3. The command, setfont, will get you a new font but won't change your color. We have no man page for consolechars so the Linux Cookbook provides no help either. In a cul de sac and can use some help, kindly.
jlowell
Offline
You have to set it in your prompt (bash's is usually PS1). Just don't set the colour back to white at the end of the line.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
I use this in my .bashrc
export PS1='[ [33[01;31m]t[33[01;34m] :: [33[01;32m]u[33[00m]$[33[01;32m]h[33[01;34m] :: [33[01;32m]w [33[00m]]
Stole it from gentoo forums, looks pretty good...sometimes.
I don't understand it...but well.
Offline
Thanks, Xentac and wakeupbomb.
So this is an ANSI sequence in PS1? Interesting. I thought for sure that there was some kind of utility that would set this for you but no soap.
Regards.
jlowell
Offline
Back again. Where is the color of the default console font set, like the font itself, in the kernel? You can change the console font color via PS1 but that's for text only, eh? The cursor color doesn't change nor does text in the init sequence. If the default color for the font were reset a priori in the kernel, these too would change, would they not?
jlowell
Offline
Maybe if you set the bashrc for root as opposed to user? I dunno
Wish I knew the answer to this actually, i'd like a colour boot up
It's google time
Offline
wakeupbomb,
Maybe if you set the bashrc for root as opposed to user? I dunno
Wish I knew the answer to this actually, i'd like a colour boot up
It's google time
Earlier, I'd spent considerable time trying to figure out how to colorize just the console cursor. The best that I could obtain from hours of various mailing list questions and googling, etc. was a reference to /usr/src/linux-2.4.21/Documentation/VGA-softcursor.txt which provided a start on the question. The documentation provides some instructions on how to change the cursor's colors but relates it to nothing tangible! I guess you have to write to the authors to learn more, but tell me if you will if you can make more sense out of this file than I can. Great instructions with no connection to the reality of the matter. Some people, really?
Regards.
jlowell
Offline
I use
user: PS1="33[1;32mu@h33[1;34m [W]33[1;32m $33[0m "
root: PS1="33[1;31mu@h33[1;34m [W]33[1;31m #33[0m "
8)
Offline
take a look at setterm
setterm will change the colors of foreground and background
but only at the console, not in xterm in xwindows
slyski
Joey: If a cow passes away from natural causes can I eat it.
Pheobe: Not if I get there first.
Offline
Thanks, slyski.
That's precisely what I'm hoping to do, control console color, not color in a terminal brought up within the X Windows, say xterm or Eterm, that I already know how to do. I took a look at the setterm man page; it appears that I'll be able to do what I want with this command. Thanks, again.
jlowell
Offline
and what about xterm's background and foreground color? where can I set this? in termcap?
I'll sleep when I'm dead
PGP pubkey on keyserver.net
Offline
first take alook at man xterm if you haven't already.
there must be a million settings to send to the command line.
i would put this in my .bashrc file as an alias as per example:
alias xterm='xterm [option] [option] [option]'
if you can modify the link that is opening xterm from say the menu item you must do the same.
slyski
Joey: If a cow passes away from natural causes can I eat it.
Pheobe: Not if I get there first.
Offline
I, too, usually create menu shortcuts or the like to start xterms etc. with customized color settings.
However, for a more generic/default solution one should go for the xresources mechanism. It's one of the oldest ways to configure and "theme" X-applications (that adhere to this mechanism). But in the days of Gnome and KDE this is no longer used that much anymore. I myself am not really using it either ;-) ... (see xrdb(1) for a start)
Offline
i agree with you andy
i found back in the days of rehat 5.2 when i was using fvwm and more recently icewm that i
found going into the background (sometimes i call it the basement ) to change settings like
that.
i believe that joint from redmond changed all that .
slyski
Joey: If a cow passes away from natural causes can I eat it.
Pheobe: Not if I get there first.
Offline