LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 03-29-2007, 12:01 AM   #1
yogi4yu
LQ Newbie
 
Registered: Oct 2006
Distribution: debain what else
Posts: 19

Rep: Reputation: 0
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
 
Old 03-29-2007, 12:12 AM   #2
yogi4yu
LQ Newbie
 
Registered: Oct 2006
Distribution: debain what else
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 03-29-2007, 04:12 AM   #3
alienux
Member
 
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
Try creating an alias for ls:

Code:
alias ls="ls --color"
Put that line in the .bashrc file in your home directory.
 
Old 03-29-2007, 11:34 PM   #4
yogi4yu
LQ Newbie
 
Registered: Oct 2006
Distribution: debain what else
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 03-30-2007, 03:29 AM   #5
alienux
Member
 
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
This page may be helpful:

http://www-128.ibm.com/developerwork.../l-tip-prompt/
 
Old 04-08-2007, 02:42 AM   #6
cseanburns
Member
 
Registered: Nov 2003
Distribution: Debian
Posts: 117

Rep: Reputation: 17
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
 
Old 04-08-2007, 11:44 PM   #7
yogi4yu
LQ Newbie
 
Registered: Oct 2006
Distribution: debain what else
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 04-09-2007, 02:02 AM   #8
yogi4yu
LQ Newbie
 
Registered: Oct 2006
Distribution: debain what else
Posts: 19

Original Poster
Rep: Reputation: 0
One more thing
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

Last edited by yogi4yu; 04-09-2007 at 02:59 AM.
 
Old 02-22-2008, 12:00 PM   #9
harryhaller
Member
 
Registered: Sep 2004
Posts: 428

Rep: Reputation: Disabled
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?
 
Old 02-22-2008, 01:31 PM   #10
harryhaller
Member
 
Registered: Sep 2004
Posts: 428

Rep: Reputation: Disabled
fyi
Quote:
setterm -foreground black -background white -store
works nicely on the ttys, but not on the virtual terminals or GNU's screen.
 
Old 05-07-2008, 09:09 AM   #11
cmjrees
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
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
 
  


Reply

Tags
color, console, linux, shell, virtual


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal color m2azer Linux - General 3 02-10-2007 12:22 AM
Terminal background color not working mijohnst Linux - Newbie 2 10-03-2005 04:11 PM
virtual console color falling Debian 2 12-23-2004 02:50 PM
Terminal font and color berkay Linux - Newbie 10 09-23-2004 02:19 AM
get terminal color? cratos Programming 0 07-16-2003 03:04 PM


All times are GMT -5. The time now is 12:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration