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

added new InputWithExit api to indicate when an exit was requested #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hashibuto
Copy link

The idea here is to allow a bit finer grained control over the Input function without disturbing the current API. When using go-prompt in a custom REPL it's useful to know when something like CTRL+D was pressed so that the loop can terminate, since there's no way to distinguish between empty input "" and an exit request. For your consideration.

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

Successfully merging this pull request may close these issues.

None yet

1 participant