print "\e[K"; # Clear to end-of-line printf "\e[%d;%dH", $row, $col; # Positions cursor at given row & column