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

Method Attach

pty/ptytest/ptytest.go:409–416  ·  view source on GitHub ↗
(inv *serpent.Invocation)

Source from the content-addressed store, hash-verified

407}
408
409func (p *PTY) Attach(inv *serpent.Invocation) *PTY {
410 p.t.Helper()
411
412 inv.Stdout = p.Output()
413 inv.Stderr = p.Output()
414 inv.Stdin = p.Input()
415 return p
416}
417
418func (p *PTY) Write(r rune) {
419 p.t.Helper()

Callers

nothing calls this directly

Implementers 3

otherPtypty/pty_other.go
ptyWindowspty/pty_windows.go
testPTYpty/ptytest/ptytest_windows.go

Calls 3

OutputMethod · 0.95
InputMethod · 0.95
HelperMethod · 0.65

Tested by

no test coverage detected