MCPcopy Create free account
hub / github.com/coder/wush / Write

Method Write

cmd/wasm/main_js.go:497–501  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

495}
496
497func (w termWriter) Write(p []byte) (n int, err error) {
498 r := bytes.Replace(p, []byte("\n"), []byte("\n\r"), -1)
499 w.f.Invoke(string(r))
500 return len(p), nil
501}
502
503type jsConsoleWriter struct{}
504

Callers 8

writeMapResponseFunction · 0.45
earlyNoiseMethod · 0.45
RunMethod · 0.45
cpHFunction · 0.45
ReadMethod · 0.45
cpHandlerFunction · 0.45
setupWebrtcConnectionMethod · 0.45
AuthKeyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected