bombillazoB
Denoβ€’2y agoβ€’
1 reply
bombillazo

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?
Was this page helpful?