WithPTYOption applies the given options to the underlying PTY.
(opts ...Option)
| 14 | |
| 15 | // WithPTYOption applies the given options to the underlying PTY. |
| 16 | func WithPTYOption(opts ...Option) StartOption { |
| 17 | return func(o *startOptions) { |
| 18 | o.ptyOpts = append(o.ptyOpts, opts...) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | // Cmd is a drop-in replacement for exec.Cmd with most of the same API, but |
| 23 | // it exposes the context.Context to our PTY code so that we can still kill the |
no outgoing calls