News for hackers. Stuff that matters.
Re:Curl doesn’t spew binary anymore by eigengrau on Saturday June 17, 2017 @11:52AM (#14576378)
> You can trick isatty, but only if you're very, very set on doing so. It requires allocating a psuedo-TTY, and attaching it.

You can also LD_PRELOAD an isatty shim that returns true. This is occasionally useful when piping the output of tools which disable ANSI colorization with no switch to re-enable that.

Re:Curl doesn’t spew binary anymore by arghwhat on Saturday June 17, 2017 @06:46PM (#14578073)
"script" is also a quick and dirty hack. It's a small tool meant to record a shell session, but if you set the output to /dev/null, it is effectively just a pty wrapper. Quicker than writing a shim.
Re:Curl doesn’t spew binary anymore by jacquesm on Saturday June 17, 2017 @02:01PM (#14576925)
Never thought of that, that is a neat trick, thank you.