home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
uupc.lzh
/
uupc
/
mlib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-16
|
682b
|
41 lines
/*
* mlib.c
*
* Amiga mailer library
*
* Things to do in uu_host
* serial I/O
* directory routines {open,read,close}dir
* prolog/epilog
* system calls
*
* $Id: mlib.c,v 1.2 90/01/16 10:26:48 crash Exp Locker: crash $
*/
#ifndef lint
static char RCSid[] = "$Id: mlib.c,v 1.2 90/01/16 10:26:48 crash Exp Locker: crash $";
#endif /* lint */
#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;
#ifdef ECHO
stty.sg_flags &= ~ECHO;
#endif /* ECHO */
ioctl(0, TIOCSETP, &stty);
c = fgetc(stdin);
ioctl(0, TIOCSETP, &sttyo);
return( c );
}