How can I replace conio.h? Unlike other similar functions, it does not require pressing Enter. Are there any analogues from the standard library?
#include <conio.h>
#include <stdio.h>
int main(void)
{
char c;
unsigned i = 0;
while (1) {
c = getch();
printf("%d - %c", i, c);
++i;
}
return 0;
}