(text: string)
| 157 | } |
| 158 | |
| 159 | type(text: string): void { |
| 160 | this.#input.write(text); |
| 161 | for (const char of text) { |
| 162 | this.#input.emit('keypress', null, { name: char }); |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | clear(): void { |
| 167 | // Recreate input stream to ensure clean state |
no test coverage detected