From: Colin Bartlett Date: 2009-10-07T15:06:28+09:00 Subject: Re: Creating a pacifier in command line program --0016e65a0c148ced1704755225ee Content-Type: text/plain; charset=ISO-8859-1 Further to the other responses, there is a thread here which has similar issues. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/336718 . In particular: . 1. Similar to Tim Hunter's suggestion: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/336734 ... to show progress in a "console" box I just repeatedly use (every second): print 13.chr + "text to show progress" This - and presumably Tim Hunter's code - runs under Linux and Windows. Actually I think I prefer Tim Hunter's formulation. (It's OK for me to say that because the post just above was from me!) . 2. If you want "multi line" changes this post uses curses and - apparently - works on both Linux and Windows. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/336742 ... This is based on the "hello.rb" example in the following place on my Win32 Ruby installation: C:/ruby/src/ruby-1.8.6-p111/ext/curses require "curses" include Curses init_screen puts '##### screen size(?): lines, cols:', lines, cols puts 'about to display text' sleep 2 begin crmode setpos( 8, 13 ) addstr("display text which we will partly over-write later") refresh sleep 2 setpos( 3, 40 ) ; addstr("display some text") ; refresh setpos( 8, 40 ) ; addstr("PARTLY") ; refresh setpos( 8, 32 ) ; addstr("W") ; refresh 20000.times do | k | setpos( 8, 13 ) ; addstr( k.to_s + " ") ; refresh end ensure close_screen end --0016e65a0c148ced1704755225ee--