MCPcopy Create free account
hub / github.com/1player/host-spawn / createPty

Function createPty

pty.go:31–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func createPty() (*pty, error) {
32 master, slave, err := termios.Pty()
33 if err != nil {
34 return nil, err
35 }
36
37 return &pty{
38 master: master,
39 slave: slave,
40 signals: make(chan os.Signal, 1),
41 }, nil
42}
43
44func (p *pty) Stdin() *os.File {
45 return p.slave

Callers 1

SpawnAndWaitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected