From: "Peña, Botp" Date: 2006-11-08T12:37:45+09:00 Subject: Re: How to make a cycling counter from commandline? David Vallner [mailto:david@vallner.net] # Tim Pease wrote: # > That should do you what you want. The secret is the carriage return # > "\r" at the beginning of the print string. That will bring # the cursor # > back to the beginning of the line and then overwrite anything # > currently on that line. # # Smells unportable between Linux, Windows, and Mac Classic. # Then again, I # don't know what approach Ruby takes to newline-handling on non-Unix # platforms. fyi, code posted by TwP runs on linux and windows. kind regards -botp