New constructs a new Pty.
(opts ...Option)
| 121 | |
| 122 | // New constructs a new Pty. |
| 123 | func New(opts ...Option) (PTY, error) { |
| 124 | return newPty(opts...) |
| 125 | } |
| 126 | |
| 127 | // ReadWriter is an implementation of io.ReadWriter that wraps two separate |
| 128 | // underlying file descriptors, one for reading and one for writing, and allows |