--- gforth/Attic/io.h 1994/07/08 15:00:48 1.3 +++ gforth/Attic/io.h 1995/02/02 18:13:04 1.4 @@ -2,15 +2,25 @@ #include +extern jmp_buf throw_jmp_buf; + +#ifdef MSDOS +# define prep_terminal() +# define deprep_terminal() +# define install_signal_handlers() + +# include + +# define key() getch() +# define key_query FLAG(kbhit()) +#else 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 */ +# define key() getkey(stdin) +# define key_query -(!!key_avail(stdin)) /* !! FLAG(...)? - anton */ /* flag was originally wrong -- lennart */ - +#endif