getch.h 237 B

123456789101112131415
  1. /* Extremely inefficient but portable POSIX getch(), see getch.c */
  2. #ifndef GETCH_H
  3. #define GETCH_H
  4. #if defined __cplusplus
  5. extern "C" {
  6. #endif
  7. int getch(void);
  8. int kbhit(void);
  9. #if defined __cplusplus
  10. }
  11. #endif
  12. #endif /* GETCH_H */