scroll/src/bun/terminal_io.ts

8 lines
158 B
JavaScript
Raw Normal View History

/**
* Wrap the runtime-specific hook into stdin
*/
export async function* inputLoop() {
for await (const chunk of Bun.stdin.stream()) {
yield chunk;
}
}