faressoft / terminalizer

🦄 Record your terminal and generate animated gif images or share a web player
https://terminalizer.com
MIT License
15.37k stars 499 forks source link

TypeError: process.stdin.setRawMode is not a function #146

Open eabase opened 3 years ago

eabase commented 3 years ago

Trying to run under Cygwin on Win81 with Py3.8 result in:

# terminalizer record demo
defaultConfigPath
The recording session is started
Press CTRL+D to exit and save the recording
Error:
  TypeError: process.stdin.setRawMode is not a function

Hint:
  Use the --help option to get help about the usage

Node & NPM versions:

node v12.18.4
npm 6.14.6
eabase commented 3 years ago

maybe replace line with

 if(process.stdin.isTTY) {
            process.stdin.setRawMode(true);
 }

app still crashes though, even after updating to:

v14.15.1
7.1.2
igorfersantos commented 2 years ago

I got the same problem while trying to record with git bash and didn't found a solution so far

edit: It worked on Powershell though