tcc_relocate: return error and remove unused code
[tinycc.git] / win32 / include / conio.h
blobc1f4151df50b1284f82f56e1f334eec2828b96ce
1 /* A conio implementation for Mingw/Dev-C++.
3 * Written by:
4 * Hongli Lai <hongli@telekabel.nl>
5 * tkorrovi <tkorrovi@altavista.net> on 2002/02/26.
6 * Andrew Westcott <ajwestco@users.sourceforge.net>
8 * Offered for use in the public domain without any warranty.
9 */
11 #ifndef _CONIO_H_
12 #define _CONIO_H_
15 #include <stdio.h>
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
21 #define BLINK 0
23 typedef enum
25 BLACK,
26 BLUE,
27 GREEN,
28 CYAN,
29 RED,
30 MAGENTA,
31 BROWN,
32 LIGHTGRAY,
33 DARKGRAY,
34 LIGHTBLUE,
35 LIGHTGREEN,
36 LIGHTCYAN,
37 LIGHTRED,
38 LIGHTMAGENTA,
39 YELLOW,
40 WHITE
41 } COLORS;
44 #define cgets _cgets
45 #define cprintf _cprintf
46 #define cputs _cputs
47 #define cscanf _cscanf
48 #define ScreenClear clrscr
50 /* blinkvideo */
52 void clreol (void);
53 void clrscr (void);
55 int _conio_gettext (int left, int top, int right, int bottom,
56 char *str);
57 /* _conio_kbhit */
59 void delline (void);
61 /* gettextinfo */
62 void gotoxy(int x, int y);
64 highvideo
65 insline
66 intensevideo
67 lowvideo
68 movetext
69 normvideo
72 void puttext (int left, int top, int right, int bottom, char *str);
74 // Screen Variables
76 /* ScreenCols
77 ScreenGetChar
78 ScreenGetCursor
79 ScreenMode
80 ScreenPutChar
81 ScreenPutString
82 ScreenRetrieve
83 ScreenRows
84 ScreenSetCursor
85 ScreenUpdate
86 ScreenUpdateLine
87 ScreenVisualBell
88 _set_screen_lines */
90 void _setcursortype (int type);
92 void textattr (int _attr);
94 void textbackground (int color);
96 void textcolor (int color);
98 /* textmode */
100 int wherex (void);
102 int wherey (void);
104 /* window */
108 /* The code below was part of Mingw's conio.h */
110 * conio.h
112 * Low level console I/O functions. Pretty please try to use the ANSI
113 * standard ones if you are writing new code.
115 * This file is part of the Mingw32 package.
117 * Contributors:
118 * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
120 * THIS SOFTWARE IS NOT COPYRIGHTED
122 * This source code is offered for use in the public domain. You may
123 * use, modify or distribute it freely.
125 * This code is distributed in the hope that it will be useful but
126 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
127 * DISCLAMED. This includes but is not limited to warranties of
128 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
130 * $Revision: 1.2 $
131 * $Author: bellard $
132 * $Date: 2005/04/17 13:14:29 $
136 char* _cgets (char*);
137 int _cprintf (const char*, ...);
138 int _cputs (const char*);
139 int _cscanf (char*, ...);
141 int _getch (void);
142 int _getche (void);
143 int _kbhit (void);
144 int _putch (int);
145 int _ungetch (int);
148 int getch (void);
149 int getche (void);
150 int kbhit (void);
151 int putch (int);
152 int ungetch (int);
155 #ifdef __cplusplus
157 #endif
159 #endif /* _CONIO_H_ */