-
Notifications
You must be signed in to change notification settings - Fork 807
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
fix(stdin): Fix first input loss when running multiple times #41
Conversation
@meowgorithm This PR is checkout from v0.12.2, which is convenient for other users who use v0.12.2 to use it directly 😁. |
Fix first input loss when running multiple times fix charmbracelet#24 Signed-off-by: mritd <mritd@linux.com>
add context to prevent goroutine leakage see also charmbracelet#24 Signed-off-by: mritd <mritd@linux.com>
This is now up to date with |
No problem, I try to re-reference this branch in my library 😁 |
Cool! If we don't reach a good conclusion on #24 in a few days I'll do a release on |
see also charmbracelet/bubbletea#41 Signed-off-by: mritd <mritd@linux.com>
Hey @mritd 👋! Thanks again for contributing this PR. We've been holding off on merging it as we're concerned that the package-level variable isn't ideal. That said, we've just closed #57 which solves a similar problem by opening and closing a TTY for input. I think we can apply a similar solution here. I'll follow up in #24. |
OK, I'll refer to code #57 to see if there are other solutions;Finally, I'm sorry I've been a little busy recently because of the Chinese New Year and all kinds of holidays. |
@mritd Oh, no worries at all. And don't feel like you need to do anything. I just wanted to let you know we're still looking at a solution and wanted you to know we're still intending to sort this one out. |
Ok, thank you. 😁 |
Here is another implementation to fix this: #120 |
This functionality is now available in |
Fix first input loss when running multiple times
fix #24
Signed-off-by: mritd mritd@linux.com