‘clrscr()’ and ‘conio.h’ not working

From Wikipedia:

conio.h is a C header file used mostly by MS-DOS compilers to provide console input/output.[1] It is not part of the C standard library or ISO C, nor is it defined by POSIX.

In short: Your program is not portable to Unix (or in fact, anything but MSDOS or Win32).

So unless you’re using an environment that has this (Microsoft compiler), you’ll need to find something else to do console manipulation. I recommend ncurses if you need low-level functions to deal with the console.

Leave a Comment