Open AlejandroSuero opened 6 months ago
In this demo I show how the current freeze png.go > out.txt
won't write correctly to stdout when piped and how this PR's changes makes it possible to do it.
https://github.com/charmbracelet/freeze/assets/71392160/05266c30-86f5-4577-8ba0-5e971e452de1
When piping the command like
freeze png.go | pbcopy
it will write to thestdout
.Like @maaslalani said, when not
tty
it will write tostdout
.Demo
https://github.com/charmbracelet/freeze/assets/71392160/c7e93918-10d8-4862-bba8-3cd9949a2d5a