home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d109
/
uupc.lha
/
UUpc
/
Source
/
LOCAL
/
mlib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-10-28
|
478b
|
44 lines
/* lib.c
Amiga library
Things to do in uu host
serial I/O
directory stuff
opendir, readdir, closedir
prolog and epilog
system call
*/
#include <stdio.h>
#include "host.h"
#include <sgtty.h>
int get_one()
{
char c;
struct sgttyb stty, sttyo;
ioctl( 0, TIOCGETP, &stty );
sttyo = stty;
stty.sg_flags |= RAW;
/* stty.sg_flags &= ~ ECHO; */
ioctl( 0, TIOCSETP, &stty );
c = fgetc( stdin );
ioctl( 0, TIOCSETP, &sttyo );
return( c );
}