ReactOS  0.4.14-dev-293-g2b39b42
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  VOID);
59 
60 VOID
62 
63 VOID
66 
67 BOOLEAN
70 
71 VOID
73  IN CHAR c);
74 
75 VOID
77  IN LPCSTR szFormat,
78  IN va_list args);
79 
80 VOID
81 __cdecl
83  IN LPCSTR szFormat,
84  ...);
85 
86 VOID
88  IN LPCSTR szText);
89 
90 BOOL
92 
93 VOID
95  PSHORT x,
96  PSHORT y);
97 
98 SHORT
100 
101 SHORT
103 
104 VOID
106  IN SHORT x,
107  IN SHORT y,
108  IN SHORT col,
109  IN SHORT row);
110 
111 VOID
113  IN SHORT x,
114  IN SHORT y,
115  IN SHORT col,
116  IN SHORT row);
117 
118 VOID
119 __cdecl
121  IN SHORT x,
122  IN SHORT y,
123  IN LPCSTR fmt, ...);
124 
125 VOID
126 __cdecl
128  IN SHORT x,
129  IN SHORT y,
130  IN SHORT len,
131  IN LPCSTR fmt, ...);
132 
133 VOID
135  IN BOOL bInsert,
136  IN BOOL bVisible);
137 
138 VOID
140  IN SHORT x,
141  IN SHORT y);
142 
143 VOID
145  IN SHORT x,
146  IN SHORT y);
147 
148 VOID
150  IN SHORT x,
151  IN SHORT y,
152  IN LPCSTR Text);
153 
154 VOID
156  IN SHORT x,
157  IN SHORT y,
158  IN SHORT len,
159  IN LPCWSTR Text);
160 
161 VOID
163  IN SHORT x,
164  IN SHORT y,
165  IN LPCSTR Text);
166 
167 VOID
169  IN LPCSTR fmt,
170  IN va_list args);
171 
172 VOID
173 __cdecl
175  IN LPCSTR fmt,
176  ...);
177 
178 VOID
180  IN SHORT x,
181  IN LPCSTR fmt,
182  IN va_list args);
183 
184 VOID
185 __cdecl
187  IN SHORT x,
188  IN LPCSTR fmt,
189  ...);
190 
191 VOID
192 __cdecl
194  IN SHORT x,
195  IN LPCSTR fmt, ...);
196 
197 VOID
199  IN SHORT x,
200  IN SHORT y,
201  IN LPCSTR Text);
202 
203 VOID
205  IN SHORT x,
206  IN SHORT y,
207  IN LPCSTR Text);
208 
209 VOID
211  IN SHORT x,
212  IN SHORT y,
213  IN INT Flags,
214  IN LPCSTR Text);
215 
216 VOID
218  IN SHORT y,
219  IN INT Flags,
220  IN SHORT Length);
221 
222 /* EOF */
SHORT xScreen
Definition: consup.c:39
#define IN
Definition: typedefs.h:38
VOID CONSOLE_SetInputTextXY(IN SHORT x, IN SHORT y, IN SHORT len, IN LPCWSTR Text)
Definition: consup.c:344
SHORT CONSOLE_GetCursorY(VOID)
Definition: consup.c:200
#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:472
VOID CONSOLE_SetTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:305
char CHAR
Definition: xmlstorage.h:175
VOID CONSOLE_SetCursorType(IN BOOL bInsert, IN BOOL bVisible)
Definition: consup.c:210
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
VOID CONSOLE_ConOutPrintfV(IN LPCSTR szFormat, IN va_list args)
Definition: consup.c:140
VOID CONSOLE_NormalTextXY(IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
Definition: consup.c:282
Definition: match.c:390
int32_t INT
Definition: typedefs.h:56
BOOLEAN CONSOLE_Init(VOID)
Definition: consup.c:45
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
static const WCHAR szText[]
Definition: dialog.c:139
VOID __cdecl CONSOLE_ConOutPrintf(IN LPCSTR szFormat,...)
Definition: consup.c:159
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:481
VOID __cdecl CONSOLE_PrintTextXYN(IN SHORT x, IN SHORT y, IN SHORT len, IN LPCSTR fmt,...)
Definition: consup.c:626
VOID CONSOLE_SetInvertedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:538
VOID CONSOLE_GetCursorXY(PSHORT x, PSHORT y)
Definition: consup.c:177
VOID CONSOLE_SetHighlightedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:568
VOID CONSOLE_ConInKey(OUT PINPUT_RECORD Buffer)
Definition: consup.c:62
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:259
BOOLEAN CONSOLE_ConInKeyPeek(OUT PINPUT_RECORD Buffer)
Definition: consup.c:81
VOID CONSOLE_ConOutPuts(IN LPCSTR szText)
Definition: consup.c:120
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
VOID CONSOLE_SetCursorXY(IN SHORT x, IN SHORT y)
Definition: consup.c:223
GLenum GLsizei len
Definition: glext.h:6722
VOID __cdecl CONSOLE_SetStatusTextX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:459
VOID __cdecl CONSOLE_SetStatusTextAutoFitX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:513
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:599
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:419
SHORT CONSOLE_GetCursorX(VOID)
Definition: consup.c:190
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:388
VOID CONSOLE_ClearStyledText(IN SHORT x, IN SHORT y, IN INT Flags, IN SHORT Length)
Definition: consup.c:755
#define OUT
Definition: typedefs.h:39
BOOL CONSOLE_Flush(VOID)
Definition: consup.c:171
HANDLE StdInput
Definition: consup.c:36
Definition: dsound.c:943
VOID CONSOLE_ClearScreen(VOID)
Definition: consup.c:235
VOID CONSOLE_SetStyledText(IN SHORT x, IN SHORT y, IN INT Flags, IN LPCSTR Text)
Definition: consup.c:670
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:106