how to move cursor back in c console?

2.4k views Asked by At

If I printed say 10 lines in the console, then if we want to modify the second line(or move the cursor to the second line), how to do this in C? Is there any escape sequence for that, or any method to move cursor to desired coordinates?

1

There are 1 answers

0
user3629249 On

You can use the ANSI escape sequences to manipulate the screen (including the cursor position)

ANSI-Escape-Sequences lists many of the ANSI escape sequences.

this page is a wiki article on the same subject