Hello,
I teach both Pascal and C at school, and I need some cursor control in order to make my examples more interesting.
With Pascal I simply add the well-know old Borland library "USES CRT;" and I get:
clrscr; to clear the screen
gotoxy(X,Y); to set the cursor position on screen
textcolor(n); textbackground(n); to set the color for pen and background
Now I'm not able to find a way to set the cursor with C language. In theory, #include <conio.h> will include the same Borland library. The strange fact is the GDB ONLINE accept it like a valid library. But then, some commands will be accepted as valid but with no effects (for example "clrscr" is accepted but will not clear the screen) Some other commands (for example "gotoxy") will be refused as "undefinited reference". Very strange...
Anyway, is there a solution to make it works? Or is there another library to get some cursor and text color control?