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

Fixed Bug where terminal not closing before moving on. #234

Closed
wants to merge 4 commits into from

Conversation

matweaver7
Copy link

This should fix the following:
#190
#180

This is not a you issue. The library readline has some problems with how they handle their close functionality.

On creation they setup a bunch of io.loops. (Seen in operations.go, std.go, readline.go)
When you call rl.close() it initiates a close on each of those items, but not all of them close in time before the return. (for whatever reason)
Thus causing missed prints to console because the console output is still not released. People have been doing a Println as an alternative, but this would fix it without needing that, and since it's at close and we're dealing with user input it won't cause excessive operation time.

matweaver7 and others added 4 commits September 10, 2024 00:24
…e we move on. There are a few io.loops that are getting hit that we have to wait to close. The real solution is to implement a channel close or waitgroup in the readline library but this is a good alternitive
@CLAassistant
Copy link

CLAassistant commented Sep 10, 2024

CLA assistant check
All committers have signed the CLA.

@matweaver7 matweaver7 closed this Sep 10, 2024
@matweaver7
Copy link
Author

I was wrong.

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.

2 participants