In the next code:
#include int main(void) { int c; while ((c=getchar())!= EOF) putchar(c); return 0; }
You could include the 'ncurses' library, and use getch() instead of getchar().
getch()
getchar()