package game // testTerm is a headless Terminal for tests: rendering is a no-op and // input plays a script, then alternates space/newline so that --More-- // and [Press return] prompts never block. type testTerm struct { input []byte pos int tick int } func (t *testTerm) Render(*Window) {} func (t *testTerm) ReadChar() byte { if t.pos < len(t.input) { c := t.input[t.pos] t.pos++ return c } t.tick++ if t.tick%2 == 0 { return '\n' } return ' ' }