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

[INFO] Windows support #3

Open
elpekenin opened this issue Jul 3, 2024 · 1 comment
Open

[INFO] Windows support #3

elpekenin opened this issue Jul 3, 2024 · 1 comment

Comments

@elpekenin
Copy link
Contributor

elpekenin commented Jul 3, 2024

Not a feature request, bug report or anything... Just sharing what i've found after doing minimal research + testing

There are 3 OS-dependant functions in the API:

  • configureTtyNonBlocking: Apparently, Windows is non-blocking by default: This would be a nop, easy
  • configureSerialNonBlocking: As far as i can tell, you can't change an open file's configuration (well, get current config and reopen with changes, i guess).
    • Either doing that, or directly opening in non-blocking mode, would require manual low-level fiddling with windows-API calls or PR'ing such options to upstream zig ( FILE_FLAG_OVERLAPPED). I didn't feel like messing that much 😛
  • restore: Shall be trivial, just undo the overlapped flag if we had to add it
@ikskuh
Copy link
Contributor

ikskuh commented Jul 4, 2024

Thanks!

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

No branches or pull requests

2 participants