This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! `tty-spawn` is the underlying library on which | |
| //! [`teetty`](https://github.com/mitsuhiko/teetty) is built. It lets you spawn | |
| //! processes in a fake TTY and duplex stdin/stdout so you can communicate with an | |
| //! otherwise user attended process. | |
| use std::ffi::{CString, OsStr, OsString}; | |
| use std::fs::File; | |
| use std::io::Write; | |
| use std::os::unix::prelude::{AsRawFd, OpenOptionsExt, OsStrExt}; | |
| use std::path::Path; | |
| use std::sync::atomic::{AtomicBool, Ordering}; |