ReactOS 0.4.15-dev-7918-g2a2556c
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
55
58
59VOID
61
62VOID
65
69
70VOID
72 IN CHAR c);
73
74VOID
76 IN LPCSTR szFormat,
78
79VOID
82 IN LPCSTR szFormat,
83 ...);
84
85VOID
87 IN LPCSTR szText);
88
89BOOL
91
92VOID
94 OUT PSHORT x,
95 OUT PSHORT y);
96
99
100SHORT
102
103VOID
105 IN SHORT x,
106 IN SHORT y,
107 IN SHORT col,
108 IN SHORT row);
109
110VOID
112 IN SHORT x,
113 IN SHORT y,
114 IN SHORT col,
115 IN SHORT row);
116
117VOID
120 IN SHORT x,
121 IN SHORT y,
122 IN LPCSTR fmt,
123 ...);
124
125VOID
128 IN SHORT x,
129 IN SHORT y,
130 IN SHORT len,
131 IN LPCSTR fmt,
132 ...);
133
134VOID
137 IN BOOL bVisible);
138
139VOID
141 IN SHORT x,
142 IN SHORT y);
143
144VOID
146 IN SHORT x,
147 IN SHORT y);
148
149VOID
151 IN SHORT x,
152 IN SHORT y,
153 IN LPCSTR Text);
154
155VOID
157 IN SHORT x,
158 IN SHORT y,
159 IN SHORT len,
160 IN LPCWSTR Text);
161
162VOID
164 IN SHORT x,
165 IN SHORT y,
166 IN LPCSTR Text);
167
168VOID
170 IN LPCSTR fmt,
171 IN va_list args);
172
173VOID
176 IN LPCSTR fmt,
177 ...);
178
179VOID
181 IN SHORT x,
182 IN LPCSTR fmt,
183 IN va_list args);
184
185VOID
188 IN SHORT x,
189 IN LPCSTR fmt,
190 ...);
191
192VOID
195 IN SHORT x,
196 IN LPCSTR fmt,
197 ...);
198
199VOID
201 IN SHORT x,
202 IN SHORT y,
203 IN LPCSTR Text);
204
205VOID
207 IN SHORT x,
208 IN SHORT y,
209 IN SHORT Length);
210
211VOID
213 IN SHORT x,
214 IN SHORT y,
215 IN LPCSTR Text);
216
217VOID
219 IN SHORT x,
220 IN SHORT y,
221 IN INT Flags,
222 IN LPCSTR Text);
223
224VOID
226 IN SHORT x,
227 IN SHORT y,
228 IN INT Flags,
229 IN SHORT Length);
230
231/* EOF */
unsigned char BOOLEAN
#define __cdecl
Definition: accygwin.h:79
char * va_list
Definition: acmsvcex.h:78
Definition: bufpool.h:45
static BOOL bInsert
Definition: cmdinput.c:121
char * Text
Definition: combotst.c:136
VOID __cdecl CONSOLE_ConOutPrintf(IN LPCSTR szFormat,...)
Definition: consup.c:163
BOOL CONSOLE_Flush(VOID)
Definition: consup.c:175
VOID __cdecl CONSOLE_PrintTextXYN(IN SHORT x, IN SHORT y, IN SHORT len, IN LPCSTR fmt,...)
Definition: consup.c:622
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
VOID CONSOLE_InvertTextXY(IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
Definition: consup.c:276
VOID CONSOLE_SetCursorXY(IN SHORT x, IN SHORT y)
Definition: consup.c:227
VOID CONSOLE_SetInvertedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:538
VOID CONSOLE_NormalTextXY(IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
Definition: consup.c:298
VOID CONSOLE_GetCursorXY(OUT PSHORT x, OUT PSHORT y)
Definition: consup.c:181
VOID CONSOLE_SetStyledText(IN SHORT x, IN SHORT y, IN INT Flags, IN LPCSTR Text)
Definition: consup.c:665
VOID __cdecl CONSOLE_SetStatusTextX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:458
SHORT yScreen
Definition: consup.h:54
VOID __cdecl CONSOLE_SetStatusText(IN LPCSTR fmt,...)
Definition: consup.c:480
VOID CONSOLE_SetTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:320
SHORT xScreen
Definition: consup.c:39
VOID CONSOLE_ConInKey(OUT PINPUT_RECORD Buffer)
Definition: consup.c:70
VOID __cdecl CONSOLE_SetStatusTextAutoFitX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:512
VOID __cdecl CONSOLE_PrintTextXY(IN SHORT x, IN SHORT y, IN LPCSTR fmt,...)
Definition: consup.c:595
SHORT CONSOLE_GetCursorX(VOID)
Definition: consup.c:194
VOID CONSOLE_ClearStyledText(IN SHORT x, IN SHORT y, IN INT Flags, IN SHORT Length)
Definition: consup.c:746
VOID CONSOLE_SetHighlightedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:566
VOID CONSOLE_ClearScreen(VOID)
Definition: consup.c:239
BOOLEAN CONSOLE_Init(VOID)
Definition: consup.c:45
VOID CONSOLE_SetStatusTextV(IN LPCSTR fmt, IN va_list args)
Definition: consup.c:471
BOOLEAN CONSOLE_ConInKeyPeek(OUT PINPUT_RECORD Buffer)
Definition: consup.c:89
VOID CONSOLE_SetCursorType(IN BOOL bInsert, IN BOOL bVisible)
Definition: consup.c:214
HANDLE StdOutput
Definition: consup.h:53
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:427
VOID CONSOLE_ConOutPuts(IN LPCSTR szText)
Definition: consup.c:127
VOID CONSOLE_ConOutPrintfV(IN LPCSTR szFormat, IN va_list args)
Definition: consup.c:145
VOID CONSOLE_SetUnderlinedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:398
HANDLE StdInput
Definition: consup.c:36
VOID CONSOLE_ConOutChar(IN CHAR c)
Definition: consup.c:114
VOID CONSOLE_ClearTextXY(IN SHORT x, IN SHORT y, IN SHORT Length)
Definition: consup.c:339
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
unsigned int BOOL
Definition: ntddk_ex.h:94
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
const GLubyte * c
Definition: glext.h:8905
GLenum GLsizei len
Definition: glext.h:6722
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
short SHORT
Definition: pedump.c:59
Definition: match.c:390
Definition: dsound.c:943
int16_t * PSHORT
Definition: typedefs.h:55
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
const char * LPCSTR
Definition: xmlstorage.h:183
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
char CHAR
Definition: xmlstorage.h:175