Skip to content

pass Ctrl-D as EOF #20

@wkhere

Description

@wkhere

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions