sindresorhus/ora


The issue has been solved
Swallow input when spinning? #97
godspeedelbow posted onGitHub
Hi,
I have built a sort of wizard kind of functionality. First it fetches some data and I use ora
to show a spinner while it's loading. When fetched, I show a question, that can be confirmed with enter.
When the user is impatient they might hit enter a bunch of times while the data is being fetched and ora
is spinning. When the fetching is done, the spinner is succeed
ed, the keypresses are passed along to the question which then automatically gets answered – not good.
Is there a way for ora
to swallow all input from keyboard while showing the spinner?
Or, is this outside the scope of ora
and maybe somebody has a suggestion?