go-isatty
go-isatty copied to clipboard
How to get the controlling terminal of the process?
Can that be dont with this package?
What do you mean controlling? go-tty ?
I need a portable way of writting to the terminal if there is one available. The application is a githooks written in Go which needs user feed back if a terminal can be opened. I think go-tty is the way to go, right?
Does this work on Windows with Cmder, or git-bash.exe? Thanks a lot!