Based on tokio::process
from tokio 0.2.9.
This crate is a fork of tokio::process
,
that adds some new functionality to tokio's
tokio::process:Command
struct:
-
pty()
: creates a pseudo-terminal device (pty) for the new process. Onspawn()
, a pty master/slave device set is created, and the process' stdin/stdout/stderr handles are connected to the slave side of the pty. The stdin/stdout/stderr methods of the returnedChild
struct all refer to the master side of the pty. -
pty_size(rows: u16, cols: u16)
: sets the initial size (rows/columns) of the pty slave device. This is the size that is reported by theTIOCGWINSZ
ioctl on the pty slave device. -
new_session()
: puts the new process in its own process group and session as session leader. If a pty is used, it will become the controlling tty of the new session. Signals sent to the parents' group or session do not reach the new process.
No windows support yet.