/* try to define away most terminfo braindamage, this file probably needs to be mercilessly hacked when porting to a new OS release :-( */ #include "curses.h" #include typedef struct termio SGTTY; typedef CHTYPE chtype; #ifdef m88k //#define SINGLE #include #define reset_prog_mode my_reset_prog_mode #else #include /* static CHTYPE curmode; */ #endif #ifdef _AIX #define _outchar _outch #endif CHTYPE vidinit(CHTYPE); #define vidattr myattr void vidattr(CHTYPE); /* We have to replace some stdio modules because stdio output doesn't work with signals -- not even with alarm() examples from the docs! If this is incompatible with your stdio, you will need to replace the whole thing. If your stdio works, then define STDIO_WORKS. Even if your stdio doesn't work, you can define STDIO_WORKS and put up with screen corruption caused by signals. /* NOTE - if your signal handler interrupts us and calls longjmp(), then don't expect anything to work . . . */ #ifdef __linux__ #define STDIO_WORKS #endif #ifndef STDIO_WORKS int _outchar(int), putp(const char *); #endif