-
Notifications
You must be signed in to change notification settings - Fork 30
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
Terminal I/O as under Arduino IDE or terminal emulation program #43
Comments
Cool, send me the PR and I'll take a look. Implementing the terminal IO emulation in a Unix environment has been tricky. EpoxyDuino was originally intended to handle only the simplest use cases. |
bxparks
added a commit
that referenced
this issue
Dec 30, 2021
bxparks
added a commit
that referenced
this issue
Dec 30, 2021
Merged
bxparks
added a commit
that referenced
this issue
Jan 25, 2022
… with new examples/StdioSerialWrite (see #43)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I think EpoxyDuino is a terrific thing. Thanks! I recently wrote a few small test sketches to test my debugger and it was great that one could compile them on my Mac as well. However, terminal I/O did not work as expected. Looking into the code, I noticed that the core reads characters only when loop is called. However, there are a lot of programs that have internal loops (such as my small tictactoe program), and for this reason never see any input from the terminal.
So, I rewrote the read/peek/available to directly call Unix read, which is the most straightforward way, I guess. Well, one needs a one character buffer. I also added a flush to every output character to have the same functionality as in my Arduino sketches. I'll send you a PR. Perhaps, it is worthwhile to include these changes.
Best,
Bernhard
The text was updated successfully, but these errors were encountered: