Commit Graph

1 Commits

Author SHA1 Message Date
Hannu Hartikainen e3e2afc4fc Replace calls to `stty` with syscalls
- 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
2020-05-24 09:25:38 +03:00