We do this within our Azure node module (we have a spinner) if you look within our cli.js at the drawAndUpdateProgress function: https://github.com/WindowsAzure/azure-sdk-for-node/blob/master/lib/cli/cli.js
We use "\r" without "\n" when writing the spinner and it works fine. On Mon, Jul 9, 2012 at 6:58 AM, Alan Gutierrez <[email protected]>wrote: > I'd like to get animated progress working on Windows. > > baz.pl > > print "Hello\rW\r\n"; > > baz.js > > process.stdout.write('Hello\rW\r\n'); > > console > > PS C:\git\proof> perl baz.pl > WPS C:\git\proof> node .\baz.js > Hello > W > PS C:\git\proof> > > I can find many sources on the Google that say that printing '\r' without > '\n' > to the Windows console (in this case PowerShell) will allow you to > overwrite the > line. > > -- > Alan Gutierrez - http://twitter.com/bigeasy - http://github.com/bigeasy > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
