in reply to Re^3: seek() command on STDOUT
in thread seek() command on STDOUT

As being suggested, I played with ANSI escape sequence a little bit, and made my program work as intended.

Thanks for your help.