LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   color in virtual terminal (https://www.linuxquestions.org/questions/linux-desktop-74/color-in-virtual-terminal-541502/)

yogi4yu 03-29-2007 12:01 AM

color in virtual terminal
 
Hi all,
I would like to change default color of my fonts in virtual terminals( CTL+ALT+F[1-6]). By default it is white. Can anybody plz tell me how to do that?

Thanx in advance

yogi4yu 03-29-2007 12:12 AM

I have searched in previous posts , but was unbale to get colors .
editing /etc/init.d/console-screen.sh & adding
setterm -foreground blue
setterm -background black
was of no use.

alienux 03-29-2007 04:12 AM

Try creating an alias for ls:

Code:

alias ls="ls --color"
Put that line in the .bashrc file in your home directory.

yogi4yu 03-29-2007 11:34 PM

I have already done that .
I am able to see directories in blue and imges in pink etc.

But my problem is that , I want the default color of font ( white ) to become green ( as in my gnome terminal ). But I don't know how to do that in virtual terminal.

alienux 03-30-2007 03:29 AM

This page may be helpful:

http://www-128.ibm.com/developerwork.../l-tip-prompt/

cseanburns 04-08-2007 02:42 AM

Changing the font type and color in a virtual console is not really a simple thing, but it can be done. Here's a couple sites I've found useful:

http://rampex.ihep.su/Linux/linux_ho...lour-ls-6.html

http://www.luv.asn.au/overheads/virtualconsoles.html

yogi4yu 04-08-2007 11:44 PM

thnx dude :)
& i would like to thank alienux too.
This is the thing i like about community, u people who r alwys ready to help , r the real jwels of this community.

The post by alienux added lot to my knowledge, how to do things at command promt. cseanburns's post was gr8 b'cause it gave me the exact thing i wanted n it was easy to remember. ( i was unable to open the second link ).

Thanx once again 2 all folks 4 all help u provided.

yogi4yu 04-09-2007 02:02 AM

One more thing :D
how to make it permanent & common to all ? I put it in bash profile n bashrc , but it is temp. Where to put that command so that i dont hav to type it every time i log in

harryhaller 02-22-2008 12:00 PM

How to change the background colour of the whole screen?
 
I would like to follow up with another question (is that allowed?)

I would like that when root logs in, either directly on a tty terminal or as an extra virtual term in GNU's screen - for example when from within screen I give the command 'screen su' - that root's screen is red with white foregound.

All the information I have found so far only gives the escape sequences for changing the text and the backgound of the text, but not of the whole screen.

Is there anything that I could put in root's .bashrc file which could change root's screen background colour?

harryhaller 02-22-2008 01:31 PM

fyi
Quote:

setterm -foreground black -background white -store
works nicely on the ttys, but not on the virtual terminals or GNU's screen.

cmjrees 05-07-2008 09:09 AM

Colour in virtual terminals...
 
Just run

Code:

# /bin/echo -e "\033[32;40m" >> /etc/issue
Then it works for all users, and only on virtual terminals. If you use the .profile approach, it does it for xterms etc, and that's not what you want when you want transparency :)


All times are GMT -5. The time now is 10:01 PM.