We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 663ff03 commit 397840aCopy full SHA for 397840a
src/pty.rs
@@ -13,6 +13,13 @@ pub struct OpenptyResult {
13
pub slave: RawFd,
14
}
15
16
+/// Create a new pseudoterminal, returning the slave and master file descriptors
17
+/// in `OpenptyResult`
18
+/// (see [openpty](http://man7.org/linux/man-pages/man3/openpty.3.html)).
19
+///
20
+/// If `winsize` is not `None`, the window size of the slave will be set to
21
+/// the values in `winsize`. If `termios` is not `None`, the pseudoterminal's
22
+/// terminal settings of the slave will be set to the values in `termios`.
23
#[inline]
24
pub fn openpty(winsize: Option<Winsize>, termios: Option<Termios>) -> Result<OpenptyResult> {
25
let mut slave: libc::c_int = -1;
0 commit comments