kthacker | 6de6775 | 2006-04-17 15:02:26 +0000 | [diff] [blame] | 1 | /* |
| 2 | CONIO.H - Console I/O library for the Amsrad CPC |
| 3 | To use with the Small Devices C Compiler |
| 4 | CONIO.H is a implementation of the Contiki CONIO.H (Derived from the borland CONIO.H) |
| 5 | |
| 6 | 2003 H. Hansen |
| 7 | */ |
| 8 | |
| 9 | #ifndef __conio_h__ |
| 10 | #define __conio_h__ |
| 11 | |
| 12 | #include <stdio.h> |
| 13 | #include <stdlib.h> |
| 14 | #include "arch.h" |
| 15 | |
| 16 | #define CH_ULCORNER 0x096 |
| 17 | #define CH_URCORNER 0x09c |
| 18 | #define CH_LLCORNER 0x093 |
| 19 | #define CH_LRCORNER 0x099 |
| 20 | |
| 21 | void clrscr (void); |
| 22 | |
| 23 | unsigned char kbhit (void); |
| 24 | |
| 25 | void gotox (unsigned char x); |
| 26 | |
| 27 | void gotoy (unsigned char y); |
| 28 | |
| 29 | void gotoxy (unsigned char x, unsigned char y); |
| 30 | |
| 31 | unsigned char wherex (void); |
| 32 | |
| 33 | unsigned char wherey (void); |
| 34 | |
| 35 | void cputc (char c); |
| 36 | |
| 37 | void cputcxy (unsigned char x, unsigned char y, char c); |
| 38 | |
| 39 | void cputs (char* s); |
| 40 | |
| 41 | char cgetc (void); |
| 42 | |
PulkoMandy | 3e21390 | 2014-06-26 11:08:29 +0200 | [diff] [blame^] | 43 | void revers (char); |
kthacker | 6de6775 | 2006-04-17 15:02:26 +0000 | [diff] [blame] | 44 | |
| 45 | void textcolor (unsigned char color); |
| 46 | |
| 47 | void bgcolor (unsigned char color); |
| 48 | |
| 49 | void bordercolor (unsigned char color); |
| 50 | |
| 51 | void chline (unsigned char length); |
| 52 | |
| 53 | void chlinexy (unsigned char x, unsigned char y, unsigned char length); |
| 54 | |
| 55 | void cvline (unsigned char length); |
| 56 | |
| 57 | void cvlinexy (unsigned char x, unsigned char y, unsigned char length); |
| 58 | |
| 59 | void cclear (unsigned char length); |
| 60 | |
| 61 | void cclearxy (unsigned char x, unsigned char y, unsigned char length); |
| 62 | |
| 63 | void screensize (unsigned char* x, unsigned char* y); |
| 64 | |
| 65 | #endif /* __conio_h__ */ |
| 66 | |