]> git.notmuchmail.org Git - notmuch/commit
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)
commitd024ab4a046b0eb53bfdbb7eb9d5f25a52172271
tree14722e17f426b347efb2b8add2149198bcc32755
parentceee152fca2be5cec9dd5873748539ff2642c91b
ANSI escapes in "new" only when output is a tty

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.
notmuch-client.h
notmuch-new.c