(p []byte)
| 88 | } |
| 89 | |
| 90 | func (o *terminalOutput) Write(p []byte) (int, error) { |
| 91 | o.mu.Lock() |
| 92 | defer o.mu.Unlock() |
| 93 | n, err := o.buffer.Write(p) |
| 94 | o.lastOutput.Store(time.Now().UnixNano()) |
| 95 | o.sawOutput.Store(true) |
| 96 | return n, err |
| 97 | } |
| 98 | |
| 99 | func (o *terminalOutput) String() string { |
| 100 | o.mu.Lock() |