zapio.Writer flushes output only on \n. This means that if you use it with a command that prints progress with \r (git clone --progress, for example), it will be silent until the work is done.
This ticket is just to track the possibility of supporting printing logs despite \r.
We can't just flush on \r because we'll end up printing a log entry for each progress update.
Ideally, the \r translates into a \r in the output stream, clearing the output and overwriting it with the updated message.
zapio.Writer flushes output only on
\n. This means that if you use it with a command that prints progress with\r(git clone --progress, for example), it will be silent until the work is done.This ticket is just to track the possibility of supporting printing logs despite
\r.We can't just flush on
\rbecause we'll end up printing a log entry for each progress update.Ideally, the
\rtranslates into a\rin the output stream, clearing the output and overwriting it with the updated message.