heapwolf / prompt-sync

a synchronous prompt for node.js
MIT License
211 stars 42 forks source link

basic windows support #4

Closed heapwolf closed 8 years ago

yegodz commented 8 years ago

@hij1nx hi... any idea how this could be done on windows? /dev/stdin does not seem to work.

I tried /c/CON but that does not work either

davidmarkclements commented 8 years ago

maybe pipe process.stdin into a tmp file and openSync the tmp file? .. might have to spawn a separate process to do that

davidmarkclements commented 8 years ago

got a solution: PR here: https://github.com/0xxff/prompt-sync/pull/9