Skip to content

zapio.Writer: Support CR (\r) #1055

Description

@abhinav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions