File:  [gforth] / gforth / Attic / io.h
Revision 1.3: download - view: text, annotated - select for diffs
Fri Jul 8 15:00:48 1994 UTC (25 years ago) by anton
Branches: MAIN
CVS tags: HEAD
signals are now translated into THROWs
A number of bug fixes (make a diff of BUGS for details)
added assert.fs and debugging.fs
made .s nicer
keep names of included files (in loadfilename) and print them upon error

/* Input driver header */

#include <setjmp.h>

unsigned char getkey(FILE *);
long key_avail(FILE *);
void prep_terminal();
void deprep_terminal();
void install_signal_handlers(void);

extern jmp_buf throw_jmp_buf;

#define key()		getkey(stdin)
#define key_query	-(!!key_avail(stdin)) /* !! FLAG(...)? - anton */
         		/* flag was originally wrong -- lennart */


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>