(fn func([]byte) (int, error))
| 670 | } |
| 671 | |
| 672 | func newTerminalWriter(fn func([]byte) (int, error)) *terminalWriter { |
| 673 | return &terminalWriter{ |
| 674 | fn: fn, |
| 675 | } |
| 676 | } |
| 677 | |
| 678 | // terminalWriter is a custom io.Writer that synchronously calls the handler's |
| 679 | // withTerminal on each write from the runner |