Thanks! I'll have a look at those.
On Saturday, August 26, 2017 at 3:33:31 AM UTC-4, Jakob Borg wrote:
>
> I think your best bet is to open a TTY manually when you detect that
> stdout is not a tty. You can use for example
> https://github.com/mattn/go-isatty to determine this. An
> `os.Open("/
Thanks. I'll check out those tools now.
On Sat, Aug 26, 2017 at 3:33 AM Jakob Borg wrote:
> I think your best bet is to open a TTY manually when you detect that
> stdout is not a tty. You can use for example
> https://github.com/mattn/go-isatty to determine this. An
> `os.Open("/dev/tty")` might
I think your best bet is to open a TTY manually when you detect that stdout is
not a tty. You can use for example https://github.com/mattn/go-isatty to
determine this. An `os.Open("/dev/tty")` might be enough, otherwise a package
like https://github.com/mattn/go-tty shows some of the setup you m