home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Mecomp Multimedia 2
/
MECOMP-CD-II.iso
/
amiga
/
programmieren
/
c
/
vbcc
/
machines
/
amigappc
/
libsrc
/
extra
/
getch.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1997-12-30
|
363 b
|
18 lines
/* Very simple implementation of getch for vbcc - use at own risk! */
/* Strange things may happen (or not) if stdin is not tty or getch */
/* is mixed with buffered io. */
#include <stdio.h>
int getch()
{
int k;
SetMode(stdin->filehandle,1);
k=getchar();
SetMode(stdin->filehandle,0);
return k;
}