/* * copyright David J. Binette * ALL RIGHTS RESERVED */ /* ------------------------------------------------------------------------ */ /* tab stops are set to 4 */ /* ------------------------------------------------------------------------ */ #include #include #include #include #include #if USETERMIOS #include #else #include #endif #include #include #include #include #include #include #include #include #include #include /* ------------------------------------------------------------------------ */ #ifndef BOOL typedef int BOOL; #endif #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #ifndef SOCKET typedef int SOCKET; #endif #ifndef INVALID_SOCKET #define INVALID_SOCKET -1 #endif #ifndef closesocket #define closesocket(s) close(s) #endif typedef FILE * IOHAND; extern int errno; #define __cdecl /* */ /* ------------------------------------------------------------------------ */ #include "yahmini.h" /* ------------------------------------------------------------------------ */ #if USETERMIOS #define SETTERMINALSTATE(t,s) tcsetattr(t,TCSANOW,s); #define GETTERMINALSTATE(t,s) tcgetattr(t,s); #else #define SETTERMINALSTATE(t,s) ioctl(t,TCSETA,s); #define GETTERMINALSTATE(t,s) ioctl(t,TCGETA,s); #endif #define SockErrNum() errno /* yes it is magic * #define CHATPROMPT "\r\033[1@>\033[1C" */ #define CHATPROMPT ">" /* ------------------------------------------------------------------------ */ /* end */