Write sends input to the process via the pseudo terminal.
(data []byte)
| 136 | |
| 137 | // Write sends input to the process via the pseudo terminal. |
| 138 | func (p *Process) Write(data []byte) (int, error) { |
| 139 | return p.xp.TerminalInPipe().Write(data) |
| 140 | } |
| 141 | |
| 142 | // Close closes the process using a SIGINT signal or forcefully killing it if the process |
| 143 | // does not exit after the timeout. It then closes the pseudo terminal. |