00001 00006 00007 // KBHIT.H 00008 00009 #ifndef KBHITh 00010 #define KBHITh 00011 00012 #include <termios.h> 00017 class keyboard 00018 { 00019 public: 00020 00021 keyboard(); 00022 ~keyboard(); 00023 int kbhit(); 00024 int getch(); 00025 00026 private: 00027 00028 struct termios initial_settings, new_settings; 00029 int peek_character; 00030 00031 }; 00032 00033 #endif