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

pass Ctrl-D as EOF #20

Open
wkhere opened this issue Jun 6, 2017 · 0 comments
Open

pass Ctrl-D as EOF #20

wkhere opened this issue Jun 6, 2017 · 0 comments

Comments

@wkhere
Copy link

wkhere commented Jun 6, 2017

Hi!

This is cool.
But how to send EOF from Ask()? Ctrl-D sends empty line, not an io.EOF error.

I have this behavior in bufio.Reader.ReadString('\n') that EOF is passed properly - thus can be handled. I'd like to have it here too.

Imagine I'm processing hidden input in a loop, would be nice to be able to end this normally, not only via Ctrl-C.

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

1 participant