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

Function WithPTYOption

pty/start.go:16–20  ·  view source on GitHub ↗

WithPTYOption applies the given options to the underlying PTY.

(opts ...Option)

Source from the content-addressed store, hash-verified

14
15// WithPTYOption applies the given options to the underlying PTY.
16func 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

Callers 4

TestSSH_ForwardGPGFunction · 0.92
TestStartFunction · 0.92
doAttachMethod · 0.92
startPTYSessionMethod · 0.92

Calls

no outgoing calls

Tested by 2

TestSSH_ForwardGPGFunction · 0.74
TestStartFunction · 0.74