Hi, I wanted to ask about special characters in C such as \n, \r, \b etc. Is there a character to move a cursor to the start of the previous line or at least to the previous line?
Hi, I wanted to ask about special characters in C such as \n, \r, \b etc. Is there a character to move a cursor to the start of the previous line or at least to the previous line?
No. Standard C doesn't really deal with terminal manipulation. You could use the curses library or something, and use your arrow keys to move around, but whatever the case, it's going to involve more work than I think you think it does.
Quzah.
Hope is the first step on the road to disappointment.
No simple editing type movement commands unless you have conio.h or curses/ncurses library.
A lower level is available in Windows using the SetConsoleCursorPosition() (and similar) functions in the Windows API.