From d024ab4a046b0eb53bfdbb7eb9d5f25a52172271 Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Mon, 23 Nov 2009 01:54:35 +0100 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index f105c8b2..4fe182ee 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -74,6 +74,7 @@ typedef void (*add_files_callback_t) (notmuch_message_t *message); typedef struct { int ignore_read_only_directories; int saw_read_only_directory; + int output_is_a_tty; int verbose; int total_files; -- cgit v1.2.3