The row, column values are not tracked properly. Two strategies: 1) when printing or newline(), manipulate our concept of the row, col values. 2) use Ansi esc sequence to request cursor position.
The row, column values are not tracked properly.
Two strategies: