From: "Shot (Piotr Szotkowski)" Date: 2009-05-17T07:10:19+09:00 Subject: Re: Console output --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Colin Bartlett: > Assuming I understand correctly what you want to do, > on a Windows system to show progress in a "console" box > I just repeatedly use (every second): > print 13.chr + "text to show progress" Now that I think about the Original Poster=E2=80=99s prolem, I think the solution needs to walk up and down the screen as well. :| > I hope it would also work in Linux. FWIW, your below code does run under Linux. :) > puts > puts 'simple (Windows) example to show putting text on same console line' > k =3D 13 > k.times do | n | > txt =3D 'count=3D ' + n.to_s > print 13.chr + txt ## CR =3D CarriageReturn > sleep 0.5 > end > puts ' *** final new line' > puts =E2=80=94 Shot --=20 elsif presley [kodz] --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoPOccACgkQi/mCfdEo8UqYzQCgzbgaqzMQu5pqRIxxiSqmNsle OSoAn2oc9ohZhCdAYjp0YwaczqkSfftf =CCUR -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--