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

The I/O thread stops terminal input from showing after program stops running #1

Open
mLaHire opened this issue Sep 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mLaHire
Copy link
Owner

mLaHire commented Sep 12, 2024

VM I/O threads seem to capture Stdout and Stdin even after the program ends.

Possible solution: use bit 14 of KBSR and DSR as a kill signal; 0 => okay, 1 => exit I/O threads.

EDIT: note, only discovered on Ubuntu 18 LTS & Kubuntu 24 LTS, not present on Windows 10

@mLaHire mLaHire added the bug Something isn't working label Sep 12, 2024
@mLaHire
Copy link
Owner Author

mLaHire commented Sep 12, 2024

Partial resolution, new problem is that program waits for key input on exit. Future solution? Nested threads, tx_rx for input handler

@mLaHire
Copy link
Owner Author

mLaHire commented Sep 12, 2024

Current stopgap -- "press any key to exit..." on exit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant