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

Method Write

pty/ptytest/ptytest.go:418–424  ·  view source on GitHub ↗
(r rune)

Source from the content-addressed store, hash-verified

416}
417
418func (p *PTY) Write(r rune) {
419 p.t.Helper()
420
421 p.logf("stdin: %q", r)
422 _, err := p.Input().Write([]byte{byte(r)})
423 require.NoError(p.t, err, "write failed")
424}
425
426func (p *PTY) WriteLine(str string) {
427 p.t.Helper()

Callers

nothing calls this directly

Implementers 3

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

Calls 4

InputMethod · 0.95
logfMethod · 0.80
HelperMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected