is there a function or a sample set of codes to do the keypress detect function as kbhit() in the DOS world (in DOS it's interrup call)? I have imitated the getch() and getche() functions with ioctl's but still can't find a way to get the keypress function working? Please reply through e-mail. Thanks,