-
-
Notifications
You must be signed in to change notification settings - Fork 546
Closed
Labels
Description
Running the same javascript script in node and ts-node should allow the script to access the TTY.
This is not the case. Here is an example script:
console.log(`process.stdin.isTTY = ${process.stdin.isTTY}`);
process.stdin.setRawMode(true);
Using node, process.stdin.isTTY = true but with ts-node, process.stdin.isTTY = undefined.
Also, calling process.stdin.setRawMode(true); with ts-node throws an exception, but not with node.
Specifications
- ts-node version: v8.10.2
- node version:v12.18.2
- TypeScript version: v3.9.7
- tsconfig.json: None
- Operating system and version: Windows 10
- If Windows, are you using WSL or WSL2?: No
Reactions are currently unavailable