]> git.notmuchmail.org Git - notmuch/commitdiff
ANSI escapes in "new" only when output is a tty
authorAdrian Perez <aperez@igalia.com>
Mon, 23 Nov 2009 00:54:35 +0000 (01:54 +0100)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 05:02:06 +0000 (06:02 +0100)
When running "notmuch new --verbose", ANSI escapes are used. This may not be
desirable when the output of the command is *not* being sent to a terminal
(e.g. when piping output into another command). In that case each file
processed is printed in a new line and ANSI escapes are not used at all.


No differences found