GNU bug report logs - #20062
[PATCH] diff: add support for --color

Previous Next

Package: diffutils;

Reported by: Giuseppe Scrivano <gscrivan <at> redhat.com>

Date: Sun, 8 Mar 2015 21:57:02 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #146 received at 20062 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Giuseppe Scrivano <gscrivan <at> redhat.com>
Cc: 20062 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#20062: [PATCH] diff: add support for --color
Date: Fri, 11 Sep 2015 09:56:25 -0700
Giuseppe Scrivano wrote:
> unfortunately there is not a standard way to deal with it.  Last
> time I looked at it, grep was suffering from this issue (Ctrl-C in the
> middle of a color sequence) would leave the terminal in a funny state.

That's a bug in grep, and I just now filed a bug report for it here:

http://bugs.gnu.org/21461

Admittedly it is a pain to handle signals correctly, but as long as we're adding 
the feature to diff we should do it right.  I suggest looking at how GNU 'ls' 
does it; 'ls' is reasonably bullet-proof against the problem.




This bug report was last modified 8 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.