Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the controlling terminal of the process? #54

Open
gabyx opened this issue Oct 10, 2020 · 2 comments
Open

How to get the controlling terminal of the process? #54

gabyx opened this issue Oct 10, 2020 · 2 comments

Comments

@gabyx
Copy link

gabyx commented Oct 10, 2020

Can that be dont with this package?

@mattn
Copy link
Owner

mattn commented Oct 10, 2020

What do you mean controlling? go-tty ?

@gabyx
Copy link
Author

gabyx commented Oct 10, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants