You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
399 B

/** @file mgetkey.h
@author M. P. Hayes, UCECE
@date 17 July 2011
@brief Non-blocking raw keyboard reading.
*/
#ifndef MGETKEY_H
#define MGETKEY_H
/* Read a single key stroke from the keyboard. If no key has been
pressed then zero is returned. Note that the key is not
echoed. */
int mgetkey (void);
/* Restore terminal settings. */
void mgetkey_reset (void);
#endif