Skip to content

stdout/stderr for text processes is ugly #137

@tailhook

Description

@tailhook

This is partially my failure in #103. As we concentrated in that PR on binary data (which is my other use case), but not on default text output. So instead of printing the text nicely for more common case we print it with escaped \n, so if the output if not one-liner (i.e. some log) it's hard to read.

I see one of two possible approaches:

  1. Format as binary, but line-by line. So weird characters are visible as escapes, but multi-line text output is readable
  2. Detect whether the output is binary or not, (by trying from_utf8 first?). And then print text normally.

What do you think?

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