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

Allow users to supply a custom cancelReader #258

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

Conversation

kylecarbs
Copy link

This enables callers to supply their own form of TTY cancellation.

We have our own Windows TTY library based on ConPTY, and would like
to use it with bubbletea, but it's not possible unless we can provide
our own form of read cancellation.

I'm not certain this is the best approach by any means, so suggestions are welcome!

This enables callers to supply their own form of TTY cancellation.

We have our own Windows TTY library based on ConPTY, and would like
to use it with bubbletea, but it's not possible unless we can provide
our own form of read cancellation.
@meowgorithm meowgorithm added the enhancement New feature or request label Mar 16, 2022
@meowgorithm
Copy link
Member

So once we merge #222 we should update this PR to get it where it needs to be in order to merge. Off the cuff, I imagine this would be best implemented as a ProgramOption, so something alone the lines of WithCancelReader(io.Reader).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants