-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
use /dev/tty instead of /dev/stdout when prompting for information #1225
Comments
Thanks, that is good advice! I'll have to look into how to implement this change in Go. To clear things up, which prompts from hub are you talking about? |
At the very start, when it asks for the username/password for the token. https://github.com/github/hub/blob/af72087bc7c4f94cf5876b22820fa9e4cf772700/github/config.go#L137-L138 |
It's a very simple change. Open |
I'll just go ahead and create the PR. |
Here's where we use stdin in this context. Go doesn't expose anything like There is also interesting mentions of "tty" here https://golang.org/pkg/syscall/#SysProcAttr Should we also write out the prompt to |
Yes, we have to write it out to |
Sorry never mind, I've got to do something else. Will not be able to work on the PR. |
No problem. Thanks for suggesting this in the first place. |
Going to close as it has been a long time and I'm not sure if this is relevant anymore. |
See neovim/neovim#5211
The text was updated successfully, but these errors were encountered: