nix-rust / nix

Rust friendly bindings to *nix APIs
MIT License
2.57k stars 650 forks source link

sys::termios: adding ControlFlags::ECHO #2420

Open devnexen opened 1 month ago

devnexen commented 1 month ago

enable echoing on input characters.

while at it with this new flag, fixing pty open_tty_pair test for solarish. While the test_write_ptty_pair passes, the test_read_ptty_pair fails when filling the master buffer.

Thus, we disable canonical and echo modes on the slave.