From 29c12a6bcea2cf58f5f97abf19885629c516b000 Mon Sep 17 00:00:00 2001 From: Paul Valladares <85648028+dreyfus92@users.noreply.github.com> Date: Sat, 29 Nov 2025 17:29:53 -0600 Subject: [PATCH 1/2] fix: remove Windows-specific raw mode handling in block function --- packages/core/src/utils/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/core/src/utils/index.ts b/packages/core/src/utils/index.ts index 3bb9aac6..030bbfc4 100644 --- a/packages/core/src/utils/index.ts +++ b/packages/core/src/utils/index.ts @@ -10,8 +10,6 @@ import { isActionKey } from './settings.js'; export * from './settings.js'; export * from './string.js'; -const isWindows = globalThis.process.platform.startsWith('win'); - export const CANCEL_SYMBOL = Symbol('clack:cancel'); export function isCancel(value: unknown): value is symbol { @@ -73,8 +71,7 @@ export function block({ input.off('keypress', clear); if (hideCursor) output.write(cursor.show); - // Prevent Windows specific issues: https://github.com/bombshell-dev/clack/issues/176 - if (input instanceof ReadStream && input.isTTY && !isWindows) { + if (input instanceof ReadStream && input.isTTY) { input.setRawMode(false); } From 4073cca472e4c7a2b6088987d6c84aef88902310 Mon Sep 17 00:00:00 2001 From: Paul Valladares <85648028+dreyfus92@users.noreply.github.com> Date: Sat, 29 Nov 2025 17:41:26 -0600 Subject: [PATCH 2/2] add: changeset --- .changeset/sour-doors-own.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/sour-doors-own.md diff --git a/.changeset/sour-doors-own.md b/.changeset/sour-doors-own.md new file mode 100644 index 00000000..7928dbe0 --- /dev/null +++ b/.changeset/sour-doors-own.md @@ -0,0 +1,5 @@ +--- +"@clack/core": patch +--- + +Removes Windows-specific raw mode handling in `block()` function