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

Remove setting the stdio file handle to nonblocking #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

multiplemonomials
Copy link
Contributor

As it turns out, this was causing issues because stdin and stdout are the same file handle, so stdout was also being set to nonblocking. And setting stdout to nonblocking meant that once the BufferedSerial TX buffer filled up, remaining characters printed would get deleted, so the entire bar graph was not being printed.

I think I originally added this code to try and implement the "press any key to exit" detection, but now this can be done via readable() anyway.

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