WithSSHRequest applies the ssh.Pty request to the PTY. Only partially supported on Windows (e.g. window size).
(req ssh.Pty)
| 99 | // |
| 100 | // Only partially supported on Windows (e.g. window size). |
| 101 | func WithSSHRequest(req ssh.Pty) Option { |
| 102 | return func(opts *ptyOptions) { |
| 103 | opts.sshReq = &req |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | // WithLogger sets a logger for logging errors. |
| 108 | func WithLogger(logger *log.Logger) Option { |
no outgoing calls