Replace calls to stty with syscalls #158

Merged
sloum merged 1 commits from dancek/bombadillo:replace-stty into release-2.3.0 2020-05-24 14:23:21 +00:00
Contributor
  • Move termios-related functionality to its own package
  • Reimplement stty calls using ioctl calls
  • Add per-platform constants for linux and non-linux because the ioctl
    enums are different. The enums in Darwin seem to come from BSD and so
    I'm assuming they might also work for other operating systems. If not,
    we'll need to add other build-constrained const files.

This code has been tested on Darwin and will be tested on Linux before
merging.


Note that this PR was discussed in length in #154, #155 and #156.

- Move termios-related functionality to its own package - Reimplement stty calls using ioctl calls - Add per-platform constants for linux and non-linux because the ioctl enums are different. The enums in Darwin seem to come from BSD and so I'm assuming they might also work for other operating systems. If not, we'll need to add other build-constrained const files. This code has been tested on Darwin and will be tested on Linux before merging. --- Note that this PR was discussed in length in #154, #155 and #156.
Owner

Approved! This is really great and I am excited to include these changes. I have verified that this builds and functions as expected on both Linux and FreeBSD. Merging in to the releas branch now and will hopefully merge in that release today or tomorrow.

Approved! This is really great and I am excited to include these changes. I have verified that this builds and functions as expected on both Linux and FreeBSD. Merging in to the releas branch now and will hopefully merge in that release today or tomorrow.
sloum closed this pull request 2020-05-24 14:23:21 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sloum/bombadillo#158
No description provided.