execute writes the given sequence to the program output.
(seq string)
| 1212 | |
| 1213 | // execute writes the given sequence to the program output. |
| 1214 | func (p *Program) execute(seq string) { |
| 1215 | p.mu.Lock() |
| 1216 | _, _ = p.outputBuf.WriteString(seq) |
| 1217 | p.mu.Unlock() |
| 1218 | } |
| 1219 | |
| 1220 | // flush flushes the output buffer to the program output. |
| 1221 | func (p *Program) flush() error { |