Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article grep: highlighting matches in color:


Re: grep: highlighting matches in color
Posted by alfadir (141.58.xx.xx) on Mon 6 Nov 2006 at 16:57

Cool.
Using the 256 color enabled Eterm one can use :

export GREP_COLOR='00;38;5;226'

to get a nice yellow color.

If you rather like light green try

export GREP_COLOR='00;38;5;157'

Background is set with 48;5 if you want to mix the two.. .. well your eyes may bleed, but anyway..

export GREP_COLOR='00;38;5;157;48;5;226'

Works under Eterm and should work with xterm-256.

The same thing can be used with .dircolors

.test 00;38;5;157;48;5;226

If one has time one can make nicer paletts and colorschemes with 256 colors than just the normal 8-16 colors that are normaly very strong and hurts your eyes.


Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search