LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-03-2010, 04:30 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,035

Rep: Reputation: 65
How to change light green text color to dark green of xterm ?


How to change light green text color to dark green of xterm ?
The xterm background is white.
Light green texts are not good for white background.
I don't want to change the xterm background.
 
Old 01-03-2010, 04:45 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The man page for xterm says you use the '-fg' option. For example:

Code:
xterm -fg black
 
Old 01-03-2010, 04:47 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You should remember to search before posting. This thread is probably useful to you.
 
Old 01-03-2010, 04:47 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,035

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by macemoneta View Post
The man page for xterm says you use the '-fg' option. For example:

Code:
xterm -fg black
I did loginShell: true,so the light green texts are still on after -fg black.
 
Old 01-03-2010, 04:49 AM   #5
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Read
Code:
man xterm
Anyway for starters:
Code:
xterm -cr red -fg darkgreen
 
Old 01-03-2010, 06:11 AM   #6
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,035

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by ~sHyLoCk~ View Post
Read
Code:
man xterm
Anyway for starters:
Code:
xterm -cr red -fg darkgreen
Those files with a+x permission are light green.(smile.txt)
http://img199.imageshack.us/i/sccc.jpg/
 
Old 01-03-2010, 06:20 AM   #7
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Quote:
Originally Posted by cola View Post
Those files with a+x permission are light green.(smile.txt)
http://img199.imageshack.us/i/sccc.jpg/
So your problem isn't with xterm, but with the output of 'ls'?
 
Old 01-03-2010, 06:23 AM   #8
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,035

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by macemoneta View Post
So your problem isn't with xterm, but with the output of 'ls'?
Yes.
 
Old 01-03-2010, 06:35 AM   #9
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Then you need to reset the LS_COLORS environment variable (which you can place in your ~/.bashrc). You can get the current value with:

Code:
echo $LS_COLORS
You can set a new string to change the colors you want, using this guide.
 
Old 01-03-2010, 07:02 AM   #10
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,035

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by macemoneta View Post
Then you need to reset the LS_COLORS environment variable (which you can place in your ~/.bashrc). You can get the current value with:

Code:
echo $LS_COLORS
You can set a new string to change the colors you want, using this guide.
Added these to ~/.bashrc.
Code:
alias ls='ls --color'
LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90'
export LS_COLORS
Still same result.
 
Old 01-03-2010, 07:29 AM   #11
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Did you log out and log back in?
 
Old 01-03-2010, 07:43 AM   #12
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Are you sure you changed the values of LS_COLORS based from the guide that macemoneta referred?

After changing, run this so that you won't need to re-login:
Code:
source /etc/profile && source ~/.bashrc
 
Old 01-03-2010, 08:53 AM   #13
dickey
Member
 
Registered: Jun 2009
Posts: 43

Rep: Reputation: 18
xterm vs ls-colors

You can either change ls's behavior, or you can
change xterm's behavior.

The colors that ls is using are from the xterm
resource settings color0, color1, color2, ...

Those resource settings are described in xterm's manpage.

Those are normally set in the app-defaults resource
file (on my machine that is in /etc/X11/app-defaults/XTerm),
but it can be overridden.

For instance, you could have your own app-defaults file
(to extend the system's app-defaults file), or you could
start xterm setting a color resource explicitly, e.g.,

xterm -xrm '*vt100.color9: limegreen'

The limegreen happens to be one of the names defined in
X's rbg.txt file. On my machine, that's /etc/X11/rgb.txt
You can also specify exact colors (more detailed...).

xterm (unlike the programs which claim to emulate it)
also can be programmed to change these colors at runtime.
The "xtermcontrol" program knows how to do this, for example.
 
Old 01-03-2010, 09:07 AM   #14
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by cola View Post
Those files with a+x permission are light green.(smile.txt)
http://img199.imageshack.us/i/sccc.jpg/
Code:
ls --color=never
 
  


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
I started using init mode 3, is there a way to change the font color to green? trist007 Linux - Newbie 6 05-21-2008 08:19 PM
An xterm like with cool mini-fonts (green color) ? frenchn00b Linux - Desktop 8 02-09-2008 07:07 AM
LXer: One Laptop Per Child Gets The Green Light in India LXer Syndicated Linux News 0 12-05-2007 01:50 PM
Getting a Green Light in Azureus tivo2004 LinuxQuestions.org Member Success Stories 1 11-30-2005 05:02 PM
There are two green light on laptop.... hitesh_linux Linux - Laptop and Netbook 1 03-31-2004 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration