Write to console at same locations

Pai-Hung Chen wrote in post #1051857:

Hi,

Is there a way to write multiple lines to the console (STDOUT) at the
same locations? For example, I'd like to show % progress for several
tasks at the same time as follows:

Task #1: 20%
Task #2: 75%
Task #3: 60%
..

That is, I only want to update the % numbers without outputting
additional lines/scrolling.

Either you can use ANSI escape codes to reposition the cursor
(non-portable to Windows) or you can uses ncurses.

···

--
Luis Lavena

--
Posted via http://www.ruby-forum.com/\.