pub fn open() -> Result<(Pty, Pts)>
Allocate and return a new pty.
Returns an error if the pty failed to be allocated.