From: Hello There Date: 2009-05-17T08:13:22+09:00 Subject: Re: Console output Shot (Piotr Szotkowski) wrote: > Hello There: > >> I need to update a whole table, many lines, is it tough luck =/ > > In this case, you can either use ncurses (hopefully, through some > platform-agnostic gem) or – if that’s feasible – clear the screen > every iteration and print the whole table; something to the tune of > > case RUBY_PLATFORM > when /linux/ then `clear` > when /win32/, /mswin/ then `clrscr` > end > > Note: The above code is untested and extremly naïve, > you should probably use something like the platform gem: > http://files.rubyforge.vm.bytemark.co.uk/platform/platform_0_4.rb > (except it’s old and there is a much newer gem that does > this; unfortunately, its name escapes me right now). > > — Shot Yeah I tried with this clear method, with the unsafe system('cls') however, but if i clear and redraw every second, it flickers very much. Im gonna test this 'clear' but i guess it will be the same? Thank you -- Posted via http://www.ruby-forum.com/.