From: David Vallner Date: 2006-11-08T08:15:43+09:00 Subject: Re: How to make a cycling counter from commandline? --------------enig304471240A49EC52E0E9E22B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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. >=20 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. Ah, the good old days of high-school Turbo Pascal, when gotoxy() Just Worked (tm). Nary a control character or escape sequence in sight. David Vallner --------------enig304471240A49EC52E0E9E22B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFUROYy6MhrS8astoRAqewAJ4+D5Ina7rAgTHzwgvwSnT5kAb6hACeJs+3 5AqydLhrYAqgD+r7y0Mazjw= =JjN7 -----END PGP SIGNATURE----- --------------enig304471240A49EC52E0E9E22B--