Bring back ext2 code from branch
[reactos.git] / reactos / base / setup / usetup / interface / consup.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2002 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 /*
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS text-mode setup
22 * FILE: subsys/system/usetup/console.h
23 * PURPOSE: Console support functions
24 * PROGRAMMER: Eric Kohl
25 */
26
27 #ifndef __CONSUP_H__
28 #define __CONSUP_H__
29
30 #define FOREGROUND_WHITE (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE)
31 #define FOREGROUND_YELLOW (FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN)
32 #define BACKGROUND_WHITE (BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE)
33
34 extern HANDLE StdInput, StdOutput;
35 extern SHORT xScreen, yScreen;
36
37 BOOLEAN
38 CONSOLE_Init(
39 VOID);
40
41 VOID
42 CONSOLE_ClearScreen(VOID);
43
44 VOID
45 CONSOLE_ConInKey(
46 OUT PINPUT_RECORD Buffer);
47
48 VOID
49 CONSOLE_ConOutChar(
50 IN CHAR c);
51
52 VOID
53 CONSOLE_ConOutPrintf(
54 IN LPCSTR szFormat, ...);
55
56 VOID
57 CONSOLE_ConOutPuts(
58 IN LPCSTR szText);
59
60 BOOL
61 CONSOLE_Flush(VOID);
62
63 SHORT
64 CONSOLE_GetCursorX(VOID);
65
66 SHORT
67 CONSOLE_GetCursorY(VOID);
68
69 VOID
70 CONSOLE_InvertTextXY(
71 IN SHORT x,
72 IN SHORT y,
73 IN SHORT col,
74 IN SHORT row);
75
76 VOID
77 CONSOLE_NormalTextXY(
78 IN SHORT x,
79 IN SHORT y,
80 IN SHORT col,
81 IN SHORT row);
82
83 VOID
84 CONSOLE_PrintTextXY(
85 IN SHORT x,
86 IN SHORT y,
87 IN LPCSTR fmt, ...);
88
89 VOID
90 CONSOLE_PrintTextXYN(
91 IN SHORT x,
92 IN SHORT y,
93 IN SHORT len,
94 IN LPCSTR fmt, ...);
95
96 VOID
97 CONSOLE_SetCursorType(
98 IN BOOL bInsert,
99 IN BOOL bVisible);
100
101 VOID
102 CONSOLE_SetCursorXY(
103 IN SHORT x,
104 IN SHORT y);
105
106 VOID
107 CONSOLE_SetCursorXY(
108 IN SHORT x,
109 IN SHORT y);
110
111 VOID
112 CONSOLE_SetHighlightedTextXY(
113 IN SHORT x,
114 IN SHORT y,
115 IN LPCSTR Text);
116
117 VOID
118 CONSOLE_SetInputTextXY(
119 IN SHORT x,
120 IN SHORT y,
121 IN SHORT len,
122 IN LPCWSTR Text);
123
124 VOID
125 CONSOLE_SetInputTextXY(
126 IN SHORT x,
127 IN SHORT y,
128 IN SHORT len,
129 IN LPCWSTR Text);
130
131 VOID
132 CONSOLE_SetInvertedTextXY(
133 IN SHORT x,
134 IN SHORT y,
135 IN LPCSTR Text);
136
137 VOID
138 CONSOLE_SetStatusText(
139 IN LPCSTR fmt, ...);
140
141 VOID
142 CONSOLE_SetTextXY(
143 IN SHORT x,
144 IN SHORT y,
145 IN LPCSTR Text);
146
147 VOID
148 CONSOLE_SetUnderlinedTextXY(
149 IN SHORT x,
150 IN SHORT y,
151 IN LPCSTR Text);
152
153 #endif /* __CONSOLE_H__*/
154
155 /* EOF */