mirror of
https://github.com/open-simh/simh.git
synced 2026-01-20 01:54:28 +00:00
Includes up through commit fc7a6fc602e2fbcd24851670a5242358765feacf from https://github.com/kstenerud/Musashi
17 lines
279 B
C
17 lines
279 B
C
#include "osd.h"
|
|
|
|
/* OS-dependant code to get a character from the user.
|
|
* This function must not block, and must either return an ASCII code or -1.
|
|
*/
|
|
#include <conio.h>
|
|
int osd_get_char(void)
|
|
{
|
|
int ch = -1;
|
|
if(kbhit())
|
|
{
|
|
while(kbhit())
|
|
ch = getch();
|
|
}
|
|
return ch;
|
|
}
|