luvit/luvit — pull request #129 by philips (2012-02-11 01:11:58+00:00)
Title: luvit.lua: don't use tty on windows

Windows's TTYs aren't pipes. Copy the logic from nodejs
https://github.com/joyent/node/blob/master/src/node.js#L221-274

KNOWN ISSUE: Windows file pipes work but they don't work right. I am not sure why:

e.g.

> luvit.exe --usage > test
> notepad test

(Note, if no script is provided, a repl is run instead.)

Notice that only the last line shows up.

Any ideas?