gofresh icon indicating copy to clipboard operation
gofresh copied to clipboard

Control characters and Windows

Open vibbix opened this issue 10 years ago • 3 comments

Using the utility on Windows with either Powershell or cmd creates these control characters, that ruin the output. control

vibbix avatar Oct 28 '15 19:10 vibbix

Hi @vibbix,

I guess it's the continuation of issue discussed here: https://github.com/divan/gofresh/issues/7

Can you clarify, this output is observed with latest master? There was a commit, that supposedly should be fixing color output problem on Windows (https://github.com/divan/gofresh/commit/a1f0f685800a9924fe3efe1b9c4d4eda7acfd9e5)

divan avatar Oct 28 '15 19:10 divan

I just went to double check that. My fork was just merged with a1f0f68. I just piped the output to a text file, and it disappeared. I'm trying to figure out exactly which part of the code is causing this issue. It might be a 3rd party library, but just using a plain fmt.println() also suffers from the same issue.

vibbix avatar Oct 28 '15 19:10 vibbix

Found a fix, will be pushing a pull request soon.

vibbix avatar Oct 28 '15 20:10 vibbix