MCPcopy Index your code
hub / github.com/coder/coder / WithSSHRequest

Function WithSSHRequest

pty/pty.go:101–105  ·  view source on GitHub ↗

WithSSHRequest applies the ssh.Pty request to the PTY. Only partially supported on Windows (e.g. window size).

(req ssh.Pty)

Source from the content-addressed store, hash-verified

99//
100// Only partially supported on Windows (e.g. window size).
101func 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.
108func WithLogger(logger *log.Logger) Option {

Callers 3

TestStartFunction · 0.92
doAttachMethod · 0.92
startPTYSessionMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestStartFunction · 0.74