bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-grep] [bugs #12019] Feature: alternative color for context lines


From: anonymous
Subject: [bug-grep] [bugs #12019] Feature: alternative color for context lines
Date: Thu, 3 Mar 2005 08:45:19 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Galeon/1.3.19 (Debian package 1.3.19-4)

Follow-up Comment #4, bugs #12019 (project grep):

Thanks very much, this sounds very good!

Pity that the shell has no way to tell the actual colors of the terminal in
which it is running, and that different terminals render colors differently. 
Perhaps we should choose a default that works for the most common terminal
setup, rather than one that does nothing.  This saves some trouble for some
of the users.  For example, if the default is white-on-black Xterm, then use
white (37) as default.

Coloring non-matching text on matching lines may be useful, but I'm not sure
how often.  

But it occurred to me that it would help if non-matching lines preceding
matching lines are colored differently than non-matching lines following
matching lines.  

Of course, this makes it even harder to find good colors to use.  I suggest
bold-black (30;1) and white (37;1) on default background.  They look OK
(gark-grey and light-grey) even on my black-on-white XTerm.  Correct me if I
am wrong, but it seems the only case when text would be unreadable on an
XTerm is if the default background is very close to one of those colors (the
other would still look OK).  In my experience, most people use either black
or white background on their terminals.

Or, use a dafault of grey background (30;47) for non-matching text on
matching lines, black on preceding lines and bold-black on following lines
(both on the default background).

Again, I appreciate your work, thank you!

    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12019>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]