({ input: t2 = import_node_process.stdin, output: u3 = import_node_process.stdout, overwrite: F5 = true, hideCursor: e3 = true } = {})
| 245 | t2.isTTY && t2.setRawMode(u3); |
| 246 | } |
| 247 | function WD({ input: t2 = import_node_process.stdin, output: u3 = import_node_process.stdout, overwrite: F5 = true, hideCursor: e3 = true } = {}) { |
| 248 | const s2 = f.createInterface({ input: t2, output: u3, prompt: "", tabSize: 1 }); |
| 249 | f.emitKeypressEvents(t2, s2), t2.isTTY && t2.setRawMode(true); |
| 250 | const C5 = (D5, { name: i3 }) => { |
| 251 | if (String(D5) === "" && process.exit(0), !F5) return; |
| 252 | let n2 = i3 === "return" ? 0 : -1, E4 = i3 === "return" ? -1 : 0; |
| 253 | f.moveCursor(u3, n2, E4, () => { |
| 254 | f.clearLine(u3, 1, () => { |
| 255 | t2.once("keypress", C5); |
| 256 | }); |
| 257 | }); |
| 258 | }; |
| 259 | return e3 && process.stdout.write(import_sisteransi.cursor.hide), t2.once("keypress", C5), () => { |
| 260 | t2.off("keypress", C5), e3 && process.stdout.write(import_sisteransi.cursor.show), t2.isTTY && !PD && t2.setRawMode(false), s2.terminal = false, s2.close(); |
| 261 | }; |
| 262 | } |
| 263 | var import_sisteransi, import_node_process, f, import_node_readline, import_node_tty, import_picocolors, M3, J3, Q2, X2, DD2, m3, T4, P2, W3, r, uD2, FD2, eD2, g2, sD2, b4, O3, CD2, I3, w4, N3, L4, iD2, y3, rD2, ED2, oD2, nD2, a, V4, z3, lD2, x3, xD2, BD2, cD2, G4, AD2, pD2, fD2, K3, gD2, vD, dD2, Y2, mD2, bD2, wD2, Z3, yD, $D, kD, H3, _D, SD, jD, MD, TD, PD; |
| 264 | var init_dist = __esm({ |
| 265 | "node_modules/@clack/core/dist/index.mjs"() { |