bug-grep
[Top][All Lists]
Advanced

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

Re: tests/yesno.sh, kinds of line (matching/non-matching, selected/rejec


From: Julian Foad
Subject: Re: tests/yesno.sh, kinds of line (matching/non-matching, selected/rejected)
Date: Sun, 13 Nov 2005 21:55:57 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Charles Levert wrote:

 sl:  terminfo-like string capability for selected lines
 cx:  terminfo-like string capability for context lines
[...]
One consequence to document is that now,
both sl and cx must be able to "support" mt.

Er... because Matched Text is printed within a Context line?  When?

By this I mean that the code intentionally does

   sgr_start(sl or cx)
   fwrite(non-matched text)
   /* no sgr_end() here */
   sgr_start(mt)
   fwrite(matched text)
   sgr_end()
   sgr_start(sl or cx)
   fwrite(non-matched text)
   sgr_end()
   fputs("\n")

for matching lines,

Yes, but not for context lines: for them it just calls print_line_tail().

- Julian




reply via email to

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