Closed vihanb closed 6 years ago
Hey @vihanb thanks for the PR!
Just on the license there, putting a license in the code copyrighting it yourself in a PR isn't really the done thing
@0x00A thoughts?
@davidmarkclements The license is copied and pasted from the repo. I did not make a new one
Oh, looks like I copied the license from the very similarly named sync-prompt repo. I'll remove it
Previously, this would error when run on some non-ttys as the
setRawMode
function wouldn't be available. I've simply wrapped all of those inprocess.stdout.isTTY
property, which should prevent those errors from happening. Additionally some terminals use\r
and others use\n
, and others a combination of both. Now this should catch\n
and\r
. I haven't made any other changes I can remember. If I have I can revert them.