diff --git a/lib/read.bat b/lib/read.bat index 7116485..c0135b6 100644 --- a/lib/read.bat +++ b/lib/read.bat @@ -6,6 +6,6 @@ if "%1"=="noechoback" ( ) else ( set /p LINE=CON ) -set /p DUM="%LINE%"/dev/tty else - read LINE "' + pathStdout + '") fi;' + @@ -120,6 +120,7 @@ function _readlineShell(noEchoBack) { shellStdout = decipher.update(fs.readFileSync(pathStdout, {encoding: 'binary'}), 'hex', encoding) + decipher.final(encoding); + shellStdout = shellStdout.replace(/^'|'$/g, ''); } fs.unlinkSync(pathStdout); diff --git a/package.json b/package.json index 94c7b96..09ad721 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "readline-sync", - "version": "0.5.2", + "version": "0.5.3", "title": "readlineSync", "description": "Synchronous Readline", "keywords": [