sindresorhus/ora

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 succeeded, 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?


@issuehunt has funded $60.00 to this issue.


posted by IssueHuntBot almost 6 years ago

@sindresorhus has rewarded $54.00 to @stroncium. See it on IssueHunt

  • :moneybag: Total deposit: $60.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $6.00
posted by issuehunt-app[bot] over 5 years ago

Fund this Issue

$60.00
Rewarded

Rewarded pull request

Recent activities

stroncium was rewarded by sindresorhus for sindresorhus/ora# 97
over 5 years ago
stroncium submitted an output to  sindresorhus/ ora# 97
almost 6 years ago