mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
ab89024ddc
Fixes: https://github.com/nodejs/node/issues/41330 PR-URL: https://github.com/nodejs/node/pull/43803 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
10 lines
190 B
JavaScript
10 lines
190 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
if (!process.stdin.isTTY) {
|
|
common.skip('does not apply on non-TTY stdin');
|
|
}
|
|
|
|
process.stdin.destroy();
|
|
process.stdin.setRawMode(true);
|