From: "Shot (Piotr Szotkowski)" Date: 2009-05-17T07:59:42+09:00 Subject: Re: Console output --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello There: > I need to update a whole table, many lines, is it tough luck =3D/ In this case, you can either use ncurses (hopefully, through some=20 platform-agnostic gem) or =E2=80=93 if that=E2=80=99s feasible =E2=80=93 cl= ear the screen every iteration and print the whole table; something to the tune of=20 case RUBY_PLATFORM when /linux/ then `clear` when /win32/, /mswin/ then `clrscr` end Note: The above code is untested and extremly na=C3=AFve, you should probably use something like the platform gem:=20 http://files.rubyforge.vm.bytemark.co.uk/platform/platform_0_4.rb (except it=E2=80=99s old and there is a much newer gem that does this; unfortunately, its name escapes me right now). =E2=80=94 Shot --=20 Gore Vidal was once head-butted by Norman Mailer, not the other way round. Vidal described the altercation as =E2=80=98marshmallow to marshmall= ow=E2=80=99 when asked about it at the Hay festival 2008. [The Guardian] --OXfL5xGRrasGEqWY 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) iEYEARECAAYFAkoPRVkACgkQi/mCfdEo8UoTxwCfeN763J6VTaKCPJ64mN2CXsXJ P2MAn1/XMjmXnd4MExEBe6TV5ZjQ73QL =MIIS -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--