/*		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 );
}




