go-prompt icon indicating copy to clipboard operation
go-prompt copied to clipboard

added new InputWithExit api to indicate when an exit was requested

Open hashibuto opened this issue 1 year ago • 0 comments

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.

hashibuto avatar Nov 26 '22 03:11 hashibuto