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?
Printable View
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.
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.