ReactOS  0.4.15-dev-3440-g915569a
consup.h
Go to the documentation of this file.
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 along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 /*
20  * COPYRIGHT: See COPYING in the top level directory
21  * PROJECT: ReactOS text-mode setup
22  * FILE: base/setup/usetup/consup.h
23  * PURPOSE: Console support functions
24  * PROGRAMMER:
25  */
26 
27 #pragma once
28 
29 #define FOREGROUND_WHITE (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE)
30 #define FOREGROUND_YELLOW (FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN)
31 #define BACKGROUND_WHITE (BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE)
32 
33 /* Text style */
34 #define TEXT_STYLE_NORMAL 0x00000001
35 #define TEXT_STYLE_HIGHLIGHT 0x00000002
36 #define TEXT_STYLE_UNDERLINE 0x00000004
37 
38 /* Text type */
39 #define TEXT_TYPE_REGULAR 0x00000008
40 #define TEXT_TYPE_STATUS 0x00000010
41 
42 /* Text align */
43 #define TEXT_ALIGN_DEFAULT 0x00000020
44 #define TEXT_ALIGN_RIGHT 0x00000040
45 #define TEXT_ALIGN_LEFT 0x00000080
46 #define TEXT_ALIGN_CENTER 0x00000100
47 
48 /* Text padding */
49 #define TEXT_PADDING_SMALL 0x00000200 /* One space */
50 #define TEXT_PADDING_MEDIUM 0x00000400 /* Two spaces */
51 #define TEXT_PADDING_BIG 0x00000800 /* Three spaces */
52 
53 extern HANDLE StdInput, StdOutput;
54 extern SHORT xScreen, yScreen;
55 
56 BOOLEAN
58 
59 VOID
61 
62 VOID
65 
66 BOOLEAN
69 
70 VOID
72  IN CHAR c);
73 
74 VOID
76  IN LPCSTR szFormat,
77  IN va_list args);
78 
79 VOID
80 __cdecl
82  IN LPCSTR szFormat,
83  ...);
84 
85 VOID
87  IN LPCSTR szText);
88 
89 BOOL
91 
92 VOID
94  OUT PSHORT x,
95  OUT PSHORT y);
96 
97 SHORT
99 
100 SHORT
102 
103 VOID
105  IN SHORT x,
106  IN SHORT y,
107  IN SHORT col,
108  IN SHORT row);
109 
110 VOID
112  IN SHORT x,
113  IN SHORT y,
114  IN SHORT col,
115  IN SHORT row);
116 
117 VOID
118 __cdecl
120  IN SHORT x,
121  IN SHORT y,
122  IN LPCSTR fmt,
123  ...);
124 
125 VOID
126 __cdecl
128  IN SHORT x,
129  IN SHORT y,
130  IN SHORT len,
131  IN LPCSTR fmt,
132  ...);
133 
134 VOID
136  IN BOOL bInsert,
137  IN BOOL bVisible);
138 
139 VOID
141  IN SHORT x,
142  IN SHORT y);
143 
144 VOID
146  IN SHORT x,
147  IN SHORT y);
148 
149 VOID
151  IN SHORT x,
152  IN SHORT y,
153  IN LPCSTR Text);
154 
155 VOID
157  IN SHORT x,
158  IN SHORT y,
159  IN SHORT len,
160  IN LPCWSTR Text);
161 
162 VOID
164  IN SHORT x,
165  IN SHORT y,
166  IN LPCSTR Text);
167 
168 VOID
170  IN LPCSTR fmt,
171  IN va_list args);
172 
173 VOID
174 __cdecl
176  IN LPCSTR fmt,
177  ...);
178 
179 VOID
181  IN SHORT x,
182  IN LPCSTR fmt,
183  IN va_list args);
184 
185 VOID
186 __cdecl
188  IN SHORT x,
189  IN LPCSTR fmt,
190  ...);
191 
192 VOID
193 __cdecl
195  IN SHORT x,
196  IN LPCSTR fmt,
197  ...);
198 
199 VOID
201  IN SHORT x,
202  IN SHORT y,
203  IN LPCSTR Text);
204 
205 VOID
207  IN SHORT x,
208  IN SHORT y,
209  IN SHORT Length);
210 
211 VOID
213  IN SHORT x,
214  IN SHORT y,
215  IN LPCSTR Text);
216 
217 VOID
219  IN SHORT x,
220  IN SHORT y,
221  IN INT Flags,
222  IN LPCSTR Text);
223 
224 VOID
226  IN SHORT x,
227  IN SHORT y,
228  IN INT Flags,
229  IN SHORT Length);
230 
231 /* EOF */
SHORT xScreen
Definition: consup.c:39
#define IN
Definition: typedefs.h:39
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
VOID CONSOLE_SetInputTextXY(IN SHORT x, IN SHORT y, IN SHORT len, IN LPCWSTR Text)
Definition: consup.c:357
SHORT CONSOLE_GetCursorY(VOID)
Definition: consup.c:204
#define __cdecl
Definition: accygwin.h:79
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
signed short * PSHORT
Definition: retypes.h:6
VOID CONSOLE_SetStatusTextV(IN LPCSTR fmt, IN va_list args)
Definition: consup.c:477
VOID CONSOLE_SetTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:320
char CHAR
Definition: xmlstorage.h:175
VOID CONSOLE_SetCursorType(IN BOOL bInsert, IN BOOL bVisible)
Definition: consup.c:214
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
VOID CONSOLE_ConOutPrintfV(IN LPCSTR szFormat, IN va_list args)
Definition: consup.c:145
VOID CONSOLE_NormalTextXY(IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
Definition: consup.c:298
Definition: match.c:390
int32_t INT
Definition: typedefs.h:58
BOOLEAN CONSOLE_Init(VOID)
Definition: consup.c:45
VOID CONSOLE_ClearTextXY(IN SHORT x, IN SHORT y, IN SHORT Length)
Definition: consup.c:339
static const WCHAR szText[]
Definition: dialog.c:139
VOID __cdecl CONSOLE_ConOutPrintf(IN LPCSTR szFormat,...)
Definition: consup.c:163
unsigned int BOOL
Definition: ntddk_ex.h:94
short SHORT
Definition: pedump.c:59
unsigned char BOOLEAN
char * va_list
Definition: acmsvcex.h:78
Definition: bufpool.h:45
const char * LPCSTR
Definition: xmlstorage.h:183
VOID __cdecl CONSOLE_SetStatusText(IN LPCSTR fmt,...)
Definition: consup.c:486
VOID __cdecl CONSOLE_PrintTextXYN(IN SHORT x, IN SHORT y, IN SHORT len, IN LPCSTR fmt,...)
Definition: consup.c:628
VOID CONSOLE_SetInvertedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:544
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
VOID CONSOLE_SetHighlightedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:572
VOID CONSOLE_ConInKey(OUT PINPUT_RECORD Buffer)
Definition: consup.c:70
const GLubyte * c
Definition: glext.h:8905
VOID CONSOLE_InvertTextXY(IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
Definition: consup.c:276
BOOLEAN CONSOLE_ConInKeyPeek(OUT PINPUT_RECORD Buffer)
Definition: consup.c:89
VOID CONSOLE_ConOutPuts(IN LPCSTR szText)
Definition: consup.c:127
VOID CONSOLE_SetCursorXY(IN SHORT x, IN SHORT y)
Definition: consup.c:227
GLenum GLsizei len
Definition: glext.h:6722
VOID __cdecl CONSOLE_SetStatusTextX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:464
VOID __cdecl CONSOLE_SetStatusTextAutoFitX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:518
static BOOL bInsert
Definition: cmdinput.c:121
SHORT yScreen
Definition: consup.c:40
VOID __cdecl CONSOLE_PrintTextXY(IN SHORT x, IN SHORT y, IN LPCSTR fmt,...)
Definition: consup.c:601
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:427
SHORT CONSOLE_GetCursorX(VOID)
Definition: consup.c:194
VOID CONSOLE_GetCursorXY(OUT PSHORT x, OUT PSHORT y)
Definition: consup.c:181
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
VOID CONSOLE_SetUnderlinedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:398
VOID CONSOLE_ClearStyledText(IN SHORT x, IN SHORT y, IN INT Flags, IN SHORT Length)
Definition: consup.c:755
#define OUT
Definition: typedefs.h:40
BOOL CONSOLE_Flush(VOID)
Definition: consup.c:175
HANDLE StdInput
Definition: consup.c:36
Definition: dsound.c:943
VOID CONSOLE_ClearScreen(VOID)
Definition: consup.c:239
VOID CONSOLE_SetStyledText(IN SHORT x, IN SHORT y, IN INT Flags, IN LPCSTR Text)
Definition: consup.c:671
char * Text
Definition: combotst.c:136
HANDLE StdOutput
Definition: consup.c:37
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
Definition: typeof.h:78
VOID CONSOLE_ConOutChar(IN CHAR c)
Definition: consup.c:114