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