Hey, I have written some notmuch hooks for my personal use, and wound up wanting to see the pretty progress output from mbsync through a pipe, but it turns out that it wasn't possible without resorting to somehow tricking isatty(1).
I'm not sure if this is a correct way to implement a new flag, as this is the first bit of C code that I have really written. I took a look at GNU coding standards [1] and at least propose that an option be made available to control the progress output even when stdout isn't connected to a TTY. [1]: https://www.gnu.org/prep/standards/standards.html#User-Interfaces Eetu Eloranta (1): add --progress option src/common.h | 7 +++++++ src/main.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++- src/mbsync.1.in | 6 ++++++ src/util.c | 1 + 4 files changed, 66 insertions(+), 1 deletion(-) -- 2.55.0 _______________________________________________ isync-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/isync-devel
