(t *testing.T, r io.Reader)
| 20 | } |
| 21 | |
| 22 | func NewTerminalReader(t *testing.T, r io.Reader) *TerminalReader { |
| 23 | return &TerminalReader{ |
| 24 | t: t, |
| 25 | r: r, |
| 26 | term: vt10x.New(vt10x.WithSize(80, 80)), |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // ReadUntilString emulates a terminal and reads one byte at a time until we |
| 31 | // either see the string we want, or the context expires. The PTY must be sized |