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

Add a non-blocking API as well as an example #7

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

Conversation

jakeru
Copy link
Contributor

@jakeru jakeru commented May 18, 2024

The non-blocking API can be used by applications that need to process input from multiple sources and perform work also while waiting for user to finish writing a command.

Note that this non-blocking API currently only works for real and supported terminals. Note also that when hiding and showing the prompt we currently choose to enable and disable raw mode. This is actually not needed, it would be enough just to just reconfigure the output.

@jakeru jakeru force-pushed the non-blocking-api branch from 2787662 to 46441fe Compare May 18, 2024 09:46
The non-blocking API can be used by applications that need to process input from
multiple sources and perform work also while waiting for user to finish writing
a command.

Note that this non-blocking API currently only works for real and supported
terminals. Note also that when hiding and showing the prompt we currently choose
to enable and disable raw mode. This is actually not needed, it would be enough
just to just reconfigure the output.
@jakeru jakeru force-pushed the non-blocking-api branch from 46441fe to 432b114 Compare May 19, 2024 20:00
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.

1 participant