I have a program that uses a terminal in raw mode and I want to move the cursor around. Where can I find the escape sequence for this and how can I send it to the terminal from inside my c program?
Here’s what I currently have:
char code[4]; code[0] = 27; code[1] = 91; code[2] = '*'; code[3] = 'D'; write(1, code, 4);
If you want control of the full screen then you should look at the ncurses library. This is a simple library for full screen console programs that contains among other things