Skip to content

Commit 29c12a6

Browse files
committed
fix: remove Windows-specific raw mode handling in block function
1 parent 2feaebb commit 29c12a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/core/src/utils/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { isActionKey } from './settings.js';
1010
export * from './settings.js';
1111
export * from './string.js';
1212

13-
const isWindows = globalThis.process.platform.startsWith('win');
14-
1513
export const CANCEL_SYMBOL = Symbol('clack:cancel');
1614

1715
export function isCancel(value: unknown): value is symbol {
@@ -73,8 +71,7 @@ export function block({
7371
input.off('keypress', clear);
7472
if (hideCursor) output.write(cursor.show);
7573

76-
// Prevent Windows specific issues: https://github.com/bombshell-dev/clack/issues/176
77-
if (input instanceof ReadStream && input.isTTY && !isWindows) {
74+
if (input instanceof ReadStream && input.isTTY) {
7875
input.setRawMode(false);
7976
}
8077

0 commit comments

Comments
 (0)