-
Notifications
You must be signed in to change notification settings - Fork 18k
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
x/sys: provide termios.h-like functionality #13210
Comments
This isn't a This is how @minux implemented it, by calling out to a C library: https://github.com/minux/drive/blob/2b076a3dc02b5fee728e9eeee8c089a414de5fbc/src/tty.go |
I disagree. Flushing stdio should be a basic function of GO without having to call an external C library. Java and Python have it built in. |
How do you flush standard input in Java and Python? Can you point to the docs? Note that this issue is not about flushing standard output. Go can already do that perfectly well. |
Sorry, I meant stdin Java: Python: |
On 12 November 2015 at 12:18, A. Kevin Bailey notifications@github.com
This is the kind of thing I was suggesting in renaming this issue. |
Some of the Also, some parts like |
Go needs a way to flush the stdin before prompt and Scanln.
See odeke-em/drive#157 for psoible fix for Linux.
The text was updated successfully, but these errors were encountered: