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

On *nix, you can probably use ansi escape sequences to move the cursor around (untested):

sub moveTo{ my( $x, $y ) = @_; return chr(27) . "[$y;$xH"; } print moveTo( 25, 25), 'some text'; print moveTo( 10, 10 ), ' ';

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^4: seek() command on STDOUT
by ybnormal (Novice) on May 01, 2010 at 04:02 UTC

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

    Thanks for your help.