Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows > Change text color in console terminal?

Forgot Password?
 Linux Desktop / X-Windows   Anything X. Gnome, KDE, remote desktop's, XGames etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-14-2003   #1 (permalink)
Just Joined!
 
Join Date: Jul 2003
Posts: 6
Send a message via Yahoo to kenmaster
Change text color in console terminal?

hi,

how do i change the text color of console from the default color grey to green? thanks
kenmaster is offline  



Reply With Quote
Old 07-14-2003   #2 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Sigh... oh, well, do as you wish. Add this to your /etc/rc.d/rc.local:
Code:
echo -en \\033[32m\\033[8] >/dev/console
Dolda2000 is offline   Reply With Quote
Old 07-14-2003   #3 (permalink)
Just Joined!
 
Join Date: Jul 2003
Posts: 6
Send a message via Yahoo to kenmaster
i tried to add that script to "rc.local" and this is the code look like? Still no change in my text color. help again.thanks

Code:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
echo -en \\03332m\\033[8] >/dev/console
kenmaster is offline   Reply With Quote
Old 07-14-2003   #4 (permalink)
Just Joined!
 
Join Date: Jul 2003
Posts: 6
Send a message via Yahoo to kenmaster
i missed type the code , here the code again... thanks
Code:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
echo -en \\033[32m\\033[8] >/dev/console
p.s can i change the bashrc for txt color?[/code]
kenmaster is offline   Reply With Quote
Old 07-14-2003   #5 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
That should have worked, but try adding it to your .bashrc instead, but in that case without ">/dev/console".
Dolda2000 is offline   Reply With Quote
Old 07-14-2003   #6 (permalink)
Linux Engineer
 
Join Date: Apr 2003
Location: Sweden
Posts: 796
You executed the rc.local program right..?? but it didnt work??
__________________
Regards

Andutt
andutt is offline   Reply With Quote
Old 07-14-2003   #7 (permalink)
Just Joined!
 
Join Date: Jul 2003
Posts: 6
Send a message via Yahoo to kenmaster
thank you dolda, it suddenly work.... i just forgot to restart the pc ealier.. thanks thanks
kenmaster is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:16 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1