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?
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
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