conio.h is perfectly useable on Windows. It's just not a portable way to do things. Also, it doesn't seem to contain the clrscr command these days. Here's three possible replacements:
See if the following works for you. I've heard that ANSI Control Codes actually work on some versions of Windows.
Code:
void cls(void) { printf("\033[1J\033[H"); }
If that doesn't work then you could always use a system call. Since this calls a separate program it's not a good way to do it if you're clearing the screen a lot.
Code:
system("cls"); // On linux, use "clear" instead of "cls"
Or you could use the proper Windows functions. (I wish I could test this, but it's just not physically (or mentally) possible. I'm particularly unsure about the GetStdHandle call.)
Code:
#include <windows.h>
void cls(void) {
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
COORD coordScreen = {0, 0};
DWORD cCharsWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
DWORD dwConSize;
GetConsoleScreenBufferInfo(hConsole, &csbi);
dwConSize = csbi.dwSize.X * csbi.dwSize.Y;
FillConsoleOutputCharacter(hConsole, (TCHAR)' ',
dwConSize, coordScreen, &cCharsWritten);
GetConsoleScreenBufferInfo(hConsole, &csbi);
FillConsoleOutputAttribute(hConsole, csbi.wAttributes,
dwConSize, coordScreen, &cCharsWritten);
SetConsoleCursorPosition(hConsole, coordScreen);
}
EDIT: Having said all that, you should probably also see if _clrscr() works (just in case!).