/[projects]/smsdaemon/kbhit.h
ViewVC logotype

Contents of /smsdaemon/kbhit.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 148 - (show annotations) (download)
Sun Dec 7 20:18:20 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 1225 byte(s)
Include guards


1 #ifndef __KBHIT_H__
2 #define __KBHIT_H__
3
4 /*****************************************************************************
5 kbhit() and getch() for Linux/UNIX
6 Chris Giese <geezer@execpc.com> http://my.execpc.com/~geezer
7 Release date: ?
8 This code is public domain (no copyright).
9 You can do whatever you want with it.
10 *****************************************************************************/
11 #if !defined(linux)
12 #include <conio.h> /* kbhit(), getch() */
13
14 #else
15
16 /*****************************************************************************
17 *****************************************************************************/
18 void cooked(void);
19 /*****************************************************************************
20 *****************************************************************************/
21 void raw(void);
22 /*****************************************************************************
23 *****************************************************************************/
24 int kbhit(void);
25 /*****************************************************************************
26 *****************************************************************************/
27 int getch(void);
28 #endif
29
30 #endif // __KBHIT_H__
31

  ViewVC Help
Powered by ViewVC 1.1.20