#ifndef TERM0H /* This file can be #include'd in either C or C++. */ #define TERM0H /* These two functions must be called in pairs. */ void term0_construct(const char *ip, unsigned short port); void term0_destruct(void); /* Legal x values go from 0 to term0_xmax() - 1 inclusive. */ unsigned term0_xmax(void); /* Display a character or string on the screen. */ void term0_put (unsigned x, char c); void term0_puts(unsigned x, const char *s); /* Return the character at the given position on the screen. */ char term0_get(unsigned x); /* Return the key the user pressed. If no key was pressed, return '\0' immediately. */ char term0_key(void); void term0_wait(int milliseconds); /* 1000 milliseconds == 1 second */ void term0_beep(void); #endif