blob: 859e90507b50fdb470a3d5c16336e27865df8e82 [file] [log] [blame]
kthacker6de67752006-04-17 15:02:26 +00001/*
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
21void clrscr (void);
22
23unsigned char kbhit (void);
24
25void gotox (unsigned char x);
26
27void gotoy (unsigned char y);
28
29void gotoxy (unsigned char x, unsigned char y);
30
31unsigned char wherex (void);
32
33unsigned char wherey (void);
34
35void cputc (char c);
36
37void cputcxy (unsigned char x, unsigned char y, char c);
38
39void cputs (char* s);
40
41char cgetc (void);
42
PulkoMandy3e213902014-06-26 11:08:29 +020043void revers (char);
kthacker6de67752006-04-17 15:02:26 +000044
45void textcolor (unsigned char color);
46
47void bgcolor (unsigned char color);
48
49void bordercolor (unsigned char color);
50
51void chline (unsigned char length);
52
53void chlinexy (unsigned char x, unsigned char y, unsigned char length);
54
55void cvline (unsigned char length);
56
57void cvlinexy (unsigned char x, unsigned char y, unsigned char length);
58
59void cclear (unsigned char length);
60
61void cclearxy (unsigned char x, unsigned char y, unsigned char length);
62
63void screensize (unsigned char* x, unsigned char* y);
64
65#endif /* __conio_h__ */
66