diff --git a/kbhit.c b/kbhit.c new file mode 100644 index 000000000..4ce1894ca --- /dev/null +++ b/kbhit.c @@ -0,0 +1,19 @@ +/* + * Keyboard test program. + */ + +#include + +int main(void) +{ + unsigned char c; + + clrscr(); + cputs(" Keyboard Test\r\n"); + + while (1) { + c = cgetc(); + cputc(c); + } + return 0; +}