(stdin: boolean, stdout: boolean)
| 6 | const streams = [process.stdin, process.stdout] as const |
| 7 | |
| 8 | const setIsTTY = (stdin: boolean, stdout: boolean) => |
| 9 | Effect.sync(() => { |
| 10 | Object.defineProperty(streams[0], "isTTY", { configurable: true, value: stdin }) |
| 11 | Object.defineProperty(streams[1], "isTTY", { configurable: true, value: stdout }) |
| 12 | }) |
| 13 | |
| 14 | const withRestoredIsTTY = <A, E, R>(effect: Effect.Effect<A, E, R>) => |
| 15 | Effect.acquireUseRelease( |