()
| 236 | } |
| 237 | |
| 238 | async function readStdin() { |
| 239 | let input = "" |
| 240 | process.stdin.setEncoding("utf8") |
| 241 | |
| 242 | for await (const chunk of process.stdin) { |
| 243 | input += chunk |
| 244 | } |
| 245 | |
| 246 | return input |
| 247 | } |
| 248 | |
| 249 | function waitUntilDestroyed(renderer: CliRenderer) { |
| 250 | if (renderer.isDestroyed) { |