-
Notifications
You must be signed in to change notification settings - Fork 12
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
Stdin should be an error on platforms that don't support it #21
Comments
Was thinking how to deal with haxetink/tink_cli#2, is it possible that tink_io provide some sort of "secureStdin" which will not echo user's input to the screen? The haxelib implementation is here. |
My advice: don't follow that path, for at its end lies only madness! :D In essence If you still want to plunge into this, I suggest having a look at node's readline module that can be used for password input as discussed here: http://stackoverflow.com/questions/24037545/how-to-hide-password-in-the-nodejs-console |
Yay I just read that. I think I have an idea now. So basically it is just reading the stdin one byte at a time and write some escape sequences to stdout to wipe out the stuff. |
But I am afraid the escape sequence won't work on windows cmd prompt. Have to test. |
Followup on #18
The text was updated successfully, but these errors were encountered: