man page text color is too dark ....(color is too dark)
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.."
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.