#include main() { int c; FILE *tty; tty = fopen("/dev/tty", "r"); while ((c = getc(tty)) != EOF) putchar(c); }