I have one algorithm to find a way out from the labyrinth. I want to display it in console, and for every step update my position there. So I don't want to repeat the same string in console, I want to update it.
Lets say I have some string like that
.W.
.W.
...
Where 'W' is a wall. And I want to set some marker to track my algorithm execution. Lets say it will be a star symbol '*'. Then I want to update star position in console.
*W.
.W.
...
--->
.W.
*W.
...
and so on.