LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2010, 09:17 PM   #1
chxooi
LQ Newbie
 
Registered: May 2010
Posts: 24

Rep: Reputation: 0
man page text color is too dark ....(color is too dark)


hi.

when I executed "man ls"...
there is always colored text...
I like to read "colored text"..

but, some color is too dark..."dark blue ???" I'don't know the exact name of color...

my background color is "black"

but, when I use "cscope->contrl+]" or "man 'ls' or 'someting'",
there are always...very dark blue colored text...

so, It is very difficult to read....

if I want to change man page color....what do I do for that?

I have to use "tera term.."

plz, "don't say that "change your terminal program..""
Except for changing utility, what else do I have to ..?
 
Old 08-08-2010, 10:37 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
is this in Gnome ???-- you do not say -- i can ONLY guess .

there is a preferences setting for the terminal for that .
change it

if kde it is different
if xfce different still
if e17 ... you get it.
 
Old 08-08-2010, 10:44 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
I think "tera term" is a terminal emulator for windows... Have you read the documentation for that program?

Alternatively , you can usually modify the colours in the terminal by configuring your shell. Are you using bash?

Evo2.
 
Old 08-08-2010, 11:37 PM   #4
chxooi
LQ Newbie
 
Registered: May 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Bash is correct...

Also correct. Teraterm is emulation program for windows....


total 40
drwx------ 3 user user 4096 Aug 9 10:25 .
drwxr-xr-x 16 root root 4096 Aug 8 23:41 ..
-rw------- 1 user user 7 Aug 9 10:25 .bash_history
-rw-r--r-- 1 user user 24 Aug 8 23:41 .bash_logout
-rw-r--r-- 1 user user 176 Aug 8 23:41 .bash_profile
-rw-r--r-- 1 user user 124 Aug 8 23:41 .bashrc
-rw------- 1 user user 35 Aug 9 11:08 .lesshst
-rw-r--r-- 1 user user 658 Aug 8 23:41 .zshrc

There is no way to configure the teraterm program...
I just want to know how to moify the color on the linux server / linux system

for example,
"man ls" shows "dark-blue" color "options.."...
Can I change the options....from "dark blue" to "yellow" or "light blue"??
if then I don't use the "dark blue color.."




"How can I configure the color...." ????
 
Old 08-08-2010, 11:52 PM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Coincidentally I was just looking this up yesterday for a similar problem. Whenever I opened a man page in a root shell, I got black text for any bold and underlined parts.

Anyway, it seems that most of the display characteristics for terminals are controlled by the termcap library. This means that you can set termcap envronment variables for changing the colors of these highlighted parts. There are also the commands tset and tput, but I don't know much about those yet. It's a complicated subject.

I found these pages interesting.

http://linuxtidbits.wordpress.com/20...for-man-pages/
http://www.networkcomputing.com/unix...orial/002.html
http://docstore.mik.ua/orelly/unix/upt/ch05_04.htm
http://www.cs.utah.edu/dept/old/texi...p/termcap.html

The first one is the one that helped me. You can use it to set the various text colors using asni color escape sequences.

Whether you can use these in your emulated environment however, I can't say.

BTW, for color output of filetype colors in ls, take a look at dircolors and the LSCOLORS variable.

Last edited by David the H.; 08-08-2010 at 11:54 PM.
 
Old 08-08-2010, 11:56 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
colours for ls are probably being set with the LS_COLORS environment variable. The colours in the man page are probably being set by your pager, which is most likely "less". I think you just need to find the correct environment variables to set.

Try:
Code:
env | grep -E 'LESS|LS'
Then google or read man pages for information on how to set these to get colors that you like.

Cheers,

Evo2.
 
Old 08-09-2010, 02:32 AM   #7
chxooi
LQ Newbie
 
Registered: May 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Wow....
I don't think that could be a problem with "LESS" command...

But, when I use the "cscope", I could see the same problem "dark blue color" over the "black background"

So, I think that you're right... "LESS default color...",

How can I change this value ???

I tried to find the changes...."LESS default configure.." ,But it is not easy to me...

Could you let me know..???

"LESS command....color thing ???"
 
Old 08-09-2010, 09:22 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by chxooi View Post
How can I change this value ???
Did you try reading the links that David the H. posted? Did you try setting the environment variables I mentioned?

In a bourne type shell (like bash) the syntax for setting environment variables is like:
Code:
export VARIABLE=value
Cheers,

Evo2.
 
Old 08-10-2010, 12:52 PM   #9
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Ok, so we're getting a bit confused here. We're talking about two different things now.

1) Man pages are (AIUI) usually formatted by using troff/groff/grotty, and one part of this process involves embedding color escape sequences into them to indicate which text should display in which color. When you call the man command, it processes the groff formatting, then pipes the output into your pager program, usually less, for display. So less only displays the color sequences already embedded in the man pages; it has no direct control over them. You can however change/override the default color sequences in the man pages by using termcap environment variables, as I pointed out in my last post.

2) The colors displayed by the ls command (with the --color option) are a separate issue. ls will read the contents of the LS_COLORS variable to determine what color to use for each kind of file. dircolors is a small program that can be used to help quickly configure the LS_COLORS variable.

Both the termcap environment variables and LS_COLORS use ansi escape codes to set the colors. The final link I gave you in my last post details what color sequences are available. Note that in termcap the color codes must be enclosed in "\e[...m" or "\033[...m", while LS_COLORS doesn't appear to need it.

I'm not completely sure about cscope, but a couple of quick searches appear to show that it will also obey your termcap/terminfo settings.

So read the man pages for each of these programs (including "man man") and the links we've provided, and use Google for anything you still aren't sure about. Take your time to understand what's happening and you'll soon be able to solve your problem.
 
  


Reply



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 to change light green text color to dark green of xterm ? cola Slackware 13 01-03-2010 09:07 AM
dark color schemes-white text doesnt show up in firefox, etc aw76 Linux - General 5 12-01-2005 10:16 AM
Dark Color Scheme in Mdk10.0? akihandyman Mandriva 0 07-16-2004 05:21 PM
dark color in some (gtk?) applications. rgiggs Slackware 11 07-15-2004 02:33 PM
ls --color=yes -> colors too dark clockworks Linux - General 2 01-26-2004 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 AM.

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