LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-15-2006, 08:35 PM   #1
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Rep: Reputation: 15
Console Text Color Change


Ok ... basic question ... how can I change the text of my console to green?
 
Old 05-15-2006, 09:27 PM   #2
Slacker_Rex
Member
 
Registered: Aug 2003
Location: Arkansas
Distribution: Slackware 12.2
Posts: 104

Rep: Reputation: 15
Not sure what distro you use, but with Slackware, a file:

/etc/DIR_COLORS

is what controls this.

If you google some for it, it is not too hard to find more than you ever wanted to know about how to customize your shell.
 
Old 05-16-2006, 12:41 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
usually in .Xresources you can specify colours for your term. Eg:

Code:
aterm*foreground: green
aterm*background: black

xterm*foreground: green
xterm*background: black

urxvt*foreground: green
urxvt*background: black
etc. man xterm or xterm --help for full options.

After changing the file you may need to do:

xrdb -merge ~/.Xresources

Last edited by dive; 05-16-2006 at 12:42 AM.
 
Old 05-16-2006, 01:49 AM   #4
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Original Poster
Rep: Reputation: 15
No no ... I meant in bash, without GUI ...
 
Old 05-16-2006, 02:13 AM   #5
stitchman
Member
 
Registered: Dec 2005
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
theres also a nice little program called Color Wrapper, search on freshmeat.net for it. It adds tasteful color to common commands to brighten up the CLI, it also works for terminals in Xwindows too.
 
Old 05-16-2006, 03:32 AM   #6
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,669

Rep: Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440
I think you'll enjoy this:

http://forums.gentoo.org/viewtopic-t-289943.html

It's some really amazing console customization.
 
Old 05-16-2006, 07:35 AM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by Mercurius
No no ... I meant in bash, without GUI ...
Probably setterm is what you want:

Code:
setterm
  [ -term terminal_name ]
  [ -reset ]
  [ -initialize ]
  [ -cursor [on|off] ]
  [ -repeat [on|off] ]
  [ -appcursorkeys [on|off] ]
  [ -linewrap [on|off] ]
  [ -default ]
  [ -foreground black|blue|green|cyan|red|magenta|yellow|white|default ]
  [ -background black|blue|green|cyan|red|magenta|yellow|white|default ]
  [ -ulcolor black|grey|blue|green|cyan|red|magenta|yellow|white ]
  [ -ulcolor bright blue|green|cyan|red|magenta|yellow|white ]
  [ -hbcolor black|grey|blue|green|cyan|red|magenta|yellow|white ]
  [ -hbcolor bright blue|green|cyan|red|magenta|yellow|white ]
  [ -inversescreen [on|off] ]
  [ -bold [on|off] ]
  [ -half-bright [on|off] ]
  [ -blink [on|off] ]
  [ -reverse [on|off] ]
  [ -underline [on|off] ]
  [ -store ]
  [ -clear [all|rest] ]
  [ -tabs [ tab1 tab2 tab3 ... ] ]      (tabn = 1-160)
  [ -clrtabs [ tab1 tab2 tab3 ... ] ]   (tabn = 1-160)
  [ -regtabs [1-160] ]
  [ -blank [0-60] ]
  [ -dump   [1-NR_CONSOLES] ]
  [ -append [1-NR_CONSOLES] ]
  [ -file dumpfilename ]
  [ -msg [on|off] ]
  [ -msglevel [0-8] ]
  [ -powersave [on|vsync|hsync|powerdown|off] ]
  [ -powerdown [0-60] ]
  [ -blength [0-2000] ]
  [ -bfreq freqnumber ]
It's called from /etc/rc.d/rc.M
 
  


Reply


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
How change text color using linux in text mode only runlevel 3? Xavius Linux - General 7 05-07-2009 02:19 AM
How to get a color text console? dejavu_01 Debian 1 08-30-2005 11:38 AM
change the console font color minike Slackware 3 08-30-2004 05:11 PM
What is the command to change text color? BiO|Happy Mandriva 2 06-09-2004 02:54 PM
How to change the color of text @ Eterm k0ljat Linux - Software 1 08-26-2003 01:53 PM


All times are GMT -5. The time now is 09:09 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