go-isatty icon indicating copy to clipboard operation
go-isatty copied to clipboard

How to get the controlling terminal of the process?

Open gabyx opened this issue 5 years ago • 2 comments

Can that be dont with this package?

gabyx avatar Oct 10 '20 15:10 gabyx

What do you mean controlling? go-tty ?

mattn avatar Oct 10 '20 15:10 mattn

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!

gabyx avatar Oct 10 '20 19:10 gabyx