Skip to content

[INFO] Windows support #3

@elpekenin

Description

@elpekenin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions