Reset position of terminal cursor when calling io.writeAllSync()
Currently using io.writeAllSync, the next data is written where the last data left off, even with a new line the cursor is kept horizontally in the position that was left.
I tried the ansi library cursorBack function but it did not work, how can I control or reset the cursor?
1 Reply
I solved this, the command stdin was not piped, only stderr and stdout and seems like it was messing up the terminal cursor location