From: Axel Etzold Date: 2008-08-20T08:19:28+09:00 Subject: Re: overprinting characters -------- Original-Nachricht -------- > Datum: Wed, 20 Aug 2008 07:20:58 +0900 > Von: Matt Harrison > An: ruby-talk@ruby-lang.org > Betreff: overprinting characters > I have a script that does things to large files > 1Gb and I want to be > able to show the percentage through the current file. > > I know exactly how I will get the percentage, but I want to know how to > display it in the terminal. > > What I would like is the name of the current file, then on the next > line, "currentbytes/totalbytes [xx%]" and I want it to update the > characters in place without writing hundreds of lines to the terminal. > > I think I want to be able to position the cursor back to the beginning > of the current line but I have no idea how to do this in ruby. > > Grateful for any ideas > > Thanks > > Matt Dear Matt, try this: http://www.ruby-forum.com/topic/162334#new (I think you want the last post's behaviour). Best regards, Axel -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx