fn open_pty(login: &Login) -> Option<PtyPair>
Allocate the PTY. None (the session already failed) when the OS cannot give one.
None