Quote:Original post by wicked357
I need to know any kind of linux substitution code for the following bits of code, both these sources require the windows.h header file to be included.
*** Source Snippet Removed ***
If your application is running in a console that handles
ANSI escapes (most likely), you can use something like:
void gotoxy(int x, int y) { printf("\x1b[%d;%dH", x, y);}
However, you might be better served by using a library like ncurses, which would handle
this, and a whole lot more :)
Quote:And a linux substitution for handling this keyboard macro
*** Source Snippet Removed ***
Generally, you get asynchronous keyboard input via libraries like SDL, the X libraries, or OpenGL's GLUT. There are some non-standard functions provided by some compiler vendors for this, but you are probably better off avoiding them.