termios-rs
termios-rs copied to clipboard
Safe bindings for the termios library.
The API to use for this is now `mem::MaybeUninit()`.
This is #24 with some fixes: * Redefined `tcflag_t` as `u32`. It's typedef'd as `__haiku_uint32` in `termios.h`. I think `u32` matches the intended use of that type. * I provided...
Is there a reason why the platform-specific fields of the `termios` structure are not exposed? For example, on Linux, the fields `c_line`, `c_ispeed` and `c_ospeed` [are declared private](https://github.com/dcuddeback/termios-rs/blob/c0a99bf904ab41a152a43dd9cdd2c44eb0857b47/src/os/linux.rs#L16). If this...
In the hope of easing reading the code and collaboration, I suggest running `cargo fmt` on the sources of this project.
macOS and iOS are unique in that they share a common base, and now that one can run iOS on Mac, it would be beneficial to let iOS have it...
Otherwise cross compiled musl targets fail at runtime. Libc is already included so linking libc isn't necessary, at least testing on Ubuntu Linux.
hello TCSANOW should be 0x540e on mips64
Terminal control variables defined in `src/os/linux.rs` are not compatible is for some architectures (MIPS for example), libc constants offers more compatible alternative for them.
rustc 1.70.0-nightly (2eaeb1eee 2023-04-05) > error[E0433]: failed to resolve: could not find `unix` in `os` > --> C:\Users\hello\.cargo\registry\src\......\termios-0.3.3\src\lib.rs:132:14 > | > 132 | use std::os::unix::io::RawFd; > | ^^^^ could not...
The low-maintenance state of this crate is great, but here comes a suggestion for a somewhat disruptive design change which might be worth considering. One can argue it made more...