/* * term_io.h * Terminal I/O header files * POSIX - VAX C 3.0 * Grupo de Tecnologia em Computaco Grafica - PUC/Rio * 31 Out 91 */ #define BUFSIZE 512 #define T_OPEN 0x0001 #define T_READ 0x0002 #define T_ASAP 0x0004 #define T_ERROR 0x0008 #define T_EOF (-1) typedef struct { char buffer[BUFSIZE]; char *curp; int flags; int device; int last; int bufsize; } TERM; TERM *_gks_puc_topen ( const char *line, const char *mode ); void _gks_puc_tclose ( TERM *t ); int _gks_puc_tflags ( TERM *t, int flag ); int _gks_puc_tgetc ( TERM *t ); int _gks_puc_tungetc ( int c, TERM *t ); int _gks_puc_tputc ( int c, TERM *t ); int _gks_puc_tflush ( TERM *t );