ReactOS  0.4.15-dev-3453-gff89651
consup.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FOREGROUND_WHITE   (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE)
 
#define FOREGROUND_YELLOW   (FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN)
 
#define BACKGROUND_WHITE   (BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE)
 
#define TEXT_STYLE_NORMAL   0x00000001
 
#define TEXT_STYLE_HIGHLIGHT   0x00000002
 
#define TEXT_STYLE_UNDERLINE   0x00000004
 
#define TEXT_TYPE_REGULAR   0x00000008
 
#define TEXT_TYPE_STATUS   0x00000010
 
#define TEXT_ALIGN_DEFAULT   0x00000020
 
#define TEXT_ALIGN_RIGHT   0x00000040
 
#define TEXT_ALIGN_LEFT   0x00000080
 
#define TEXT_ALIGN_CENTER   0x00000100
 
#define TEXT_PADDING_SMALL   0x00000200 /* One space */
 
#define TEXT_PADDING_MEDIUM   0x00000400 /* Two spaces */
 
#define TEXT_PADDING_BIG   0x00000800 /* Three spaces */
 

Functions

BOOLEAN CONSOLE_Init (VOID)
 
VOID CONSOLE_ClearScreen (VOID)
 
VOID CONSOLE_ConInKey (OUT PINPUT_RECORD Buffer)
 
BOOLEAN CONSOLE_ConInKeyPeek (OUT PINPUT_RECORD Buffer)
 
VOID CONSOLE_ConOutChar (IN CHAR c)
 
VOID CONSOLE_ConOutPrintfV (IN LPCSTR szFormat, IN va_list args)
 
VOID __cdecl CONSOLE_ConOutPrintf (IN LPCSTR szFormat,...)
 
VOID CONSOLE_ConOutPuts (IN LPCSTR szText)
 
BOOL CONSOLE_Flush (VOID)
 
VOID CONSOLE_GetCursorXY (OUT PSHORT x, OUT PSHORT y)
 
SHORT CONSOLE_GetCursorX (VOID)
 
SHORT CONSOLE_GetCursorY (VOID)
 
VOID CONSOLE_InvertTextXY (IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
 
VOID CONSOLE_NormalTextXY (IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
 
VOID __cdecl CONSOLE_PrintTextXY (IN SHORT x, IN SHORT y, IN LPCSTR fmt,...)
 
VOID __cdecl CONSOLE_PrintTextXYN (IN SHORT x, IN SHORT y, IN SHORT len, IN LPCSTR fmt,...)
 
VOID CONSOLE_SetCursorType (IN BOOL bInsert, IN BOOL bVisible)
 
VOID CONSOLE_SetCursorXY (IN SHORT x, IN SHORT y)
 
VOID CONSOLE_SetHighlightedTextXY (IN SHORT x, IN SHORT y, IN LPCSTR Text)
 
VOID CONSOLE_SetInputTextXY (IN SHORT x, IN SHORT y, IN SHORT len, IN LPCWSTR Text)
 
VOID CONSOLE_SetInvertedTextXY (IN SHORT x, IN SHORT y, IN LPCSTR Text)
 
VOID CONSOLE_SetStatusTextV (IN LPCSTR fmt, IN va_list args)
 
VOID __cdecl CONSOLE_SetStatusText (IN LPCSTR fmt,...)
 
VOID CONSOLE_SetStatusTextXV (IN SHORT x, IN LPCSTR fmt, IN va_list args)
 
VOID __cdecl CONSOLE_SetStatusTextX (IN SHORT x, IN LPCSTR fmt,...)
 
VOID __cdecl CONSOLE_SetStatusTextAutoFitX (IN SHORT x, IN LPCSTR fmt,...)
 
VOID CONSOLE_SetTextXY (IN SHORT x, IN SHORT y, IN LPCSTR Text)
 
VOID CONSOLE_ClearTextXY (IN SHORT x, IN SHORT y, IN SHORT Length)
 
VOID CONSOLE_SetUnderlinedTextXY (IN SHORT x, IN SHORT y, IN LPCSTR Text)
 
VOID CONSOLE_SetStyledText (IN SHORT x, IN SHORT y, IN INT Flags, IN LPCSTR Text)
 
VOID CONSOLE_ClearStyledText (IN SHORT x, IN SHORT y, IN INT Flags, IN SHORT Length)
 

Variables

HANDLE StdInput
 
HANDLE StdOutput
 
SHORT xScreen
 
SHORT yScreen
 

Macro Definition Documentation

◆ BACKGROUND_WHITE

#define BACKGROUND_WHITE   (BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE)

Definition at line 31 of file consup.h.

◆ FOREGROUND_WHITE

#define FOREGROUND_WHITE   (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE)

Definition at line 29 of file consup.h.

◆ FOREGROUND_YELLOW

Definition at line 30 of file consup.h.

◆ TEXT_ALIGN_CENTER

#define TEXT_ALIGN_CENTER   0x00000100

Definition at line 46 of file consup.h.

◆ TEXT_ALIGN_DEFAULT

#define TEXT_ALIGN_DEFAULT   0x00000020

Definition at line 43 of file consup.h.

◆ TEXT_ALIGN_LEFT

#define TEXT_ALIGN_LEFT   0x00000080

Definition at line 45 of file consup.h.

◆ TEXT_ALIGN_RIGHT

#define TEXT_ALIGN_RIGHT   0x00000040

Definition at line 44 of file consup.h.

◆ TEXT_PADDING_BIG

#define TEXT_PADDING_BIG   0x00000800 /* Three spaces */

Definition at line 51 of file consup.h.

◆ TEXT_PADDING_MEDIUM

#define TEXT_PADDING_MEDIUM   0x00000400 /* Two spaces */

Definition at line 50 of file consup.h.

◆ TEXT_PADDING_SMALL

#define TEXT_PADDING_SMALL   0x00000200 /* One space */

Definition at line 49 of file consup.h.

◆ TEXT_STYLE_HIGHLIGHT

#define TEXT_STYLE_HIGHLIGHT   0x00000002

Definition at line 35 of file consup.h.

◆ TEXT_STYLE_NORMAL

#define TEXT_STYLE_NORMAL   0x00000001

Definition at line 34 of file consup.h.

◆ TEXT_STYLE_UNDERLINE

#define TEXT_STYLE_UNDERLINE   0x00000004

Definition at line 36 of file consup.h.

◆ TEXT_TYPE_REGULAR

#define TEXT_TYPE_REGULAR   0x00000008

Definition at line 39 of file consup.h.

◆ TEXT_TYPE_STATUS

#define TEXT_TYPE_STATUS   0x00000010

Definition at line 40 of file consup.h.

Function Documentation

◆ CONSOLE_ClearScreen()

VOID CONSOLE_ClearScreen ( VOID  )

Definition at line 239 of file consup.c.

240 {
241  COORD coPos;
242  DWORD Written;
243 
244  coPos.X = 0;
245  coPos.Y = 0;
246 
247  /*
248  * Hide everything under the same foreground & background colors, so that
249  * the actual color and text blanking reset does not create a visual "blinking".
250  * We do this because we cannot do the screen scrolling trick that would
251  * allow to change both the text and the colors at the same time (the
252  * function is currently not available in our console "emulation" layer).
253  */
256  xScreen * yScreen,
257  coPos,
258  &Written);
259 
260  /* Blank the text */
262  ' ',
263  xScreen * yScreen,
264  coPos,
265  &Written);
266 
267  /* Reset the actual foreground & background colors */
270  xScreen * yScreen,
271  coPos,
272  &Written);
273 }
SHORT xScreen
Definition: consup.c:39
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:522
#define FOREGROUND_WHITE
Definition: consup.h:29
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:557
HANDLE StdOutput
Definition: consup.c:37
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
SHORT yScreen
Definition: consup.c:40
#define BACKGROUND_BLUE
Definition: blue.h:65
ULONG Y
Definition: bl.h:1341
#define FOREGROUND_BLUE
Definition: blue.h:61

Referenced by CommandCls(), RecoveryConsole(), RunUSetup(), and SelectFileSystemPage().

◆ CONSOLE_ClearStyledText()

VOID CONSOLE_ClearStyledText ( IN SHORT  x,
IN SHORT  y,
IN INT  Flags,
IN SHORT  Length 
)

Definition at line 755 of file consup.c.

760 {
761  COORD coPos;
762 
763  coPos.X = x;
764  coPos.Y = y;
765 
766  if (Flags & TEXT_TYPE_STATUS)
767  {
768  coPos.X = x;
769  coPos.Y = yScreen - 1;
770  }
771  else /* TEXT_TYPE_REGULAR (Default) */
772  {
773  coPos.X = x;
774  coPos.Y = y;
775  }
776 
777  if (Flags & TEXT_ALIGN_CENTER)
778  {
779  coPos.X = (xScreen - Length) / 2;
780  }
781  else if(Flags & TEXT_ALIGN_RIGHT)
782  {
783  coPos.X = coPos.X - Length;
784 
786  {
787  coPos.X -= 1;
788  }
789  else if (Flags & TEXT_PADDING_MEDIUM)
790  {
791  coPos.X -= 2;
792  }
793  else if (Flags & TEXT_PADDING_BIG)
794  {
795  coPos.X -= 3;
796  }
797  }
798  else /* TEXT_ALIGN_LEFT (Default) */
799  {
801  {
802  coPos.X += 1;
803  }
804  else if (Flags & TEXT_PADDING_MEDIUM)
805  {
806  coPos.X += 2;
807  }
808  else if (Flags & TEXT_PADDING_BIG)
809  {
810  coPos.X += 3;
811  }
812  }
813 
814  if (Flags & TEXT_TYPE_STATUS)
815  {
817  }
818  else /* TEXT_TYPE_REGULAR (Default) */
819  {
820  CONSOLE_ClearTextXY(coPos.X, coPos.Y, Length);
821  }
822 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
SHORT xScreen
Definition: consup.c:39
VOID CONSOLE_ClearTextXY(IN SHORT x, IN SHORT y, IN SHORT Length)
Definition: consup.c:339
#define TEXT_PADDING_MEDIUM
Definition: consup.h:50
static VOID CONSOLE_ClearStatusTextX(IN SHORT x, IN SHORT Length)
Definition: consup.c:499
#define TEXT_TYPE_STATUS
Definition: consup.h:40
#define TEXT_ALIGN_CENTER
Definition: consup.h:46
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define TEXT_ALIGN_RIGHT
Definition: consup.h:44
ULONG X
Definition: bl.h:1340
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
Definition: bl.h:1338
SHORT yScreen
Definition: consup.c:40
#define TEXT_PADDING_BIG
Definition: consup.h:51
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define TEXT_PADDING_SMALL
Definition: consup.h:49
ULONG Y
Definition: bl.h:1341

Referenced by MUIClearPage(), and MUIClearStyledText().

◆ CONSOLE_ClearTextXY()

VOID CONSOLE_ClearTextXY ( IN SHORT  x,
IN SHORT  y,
IN SHORT  Length 
)

Definition at line 339 of file consup.c.

342 {
343  COORD coPos;
344  DWORD Written;
345 
346  coPos.X = x;
347  coPos.Y = y;
348 
350  ' ',
351  Length,
352  coPos,
353  &Written);
354 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:557
HANDLE StdOutput
Definition: consup.c:37
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
ULONG Y
Definition: bl.h:1341

Referenced by CONSOLE_ClearStyledText(), and MUIClearText().

◆ CONSOLE_ConInKey()

VOID CONSOLE_ConInKey ( OUT PINPUT_RECORD  Buffer)

Definition at line 70 of file consup.c.

72 {
73  DWORD Read;
74 
75  while (TRUE)
76  {
77  /* Wait for a key press */
79 
80  if ((Buffer->EventType == KEY_EVENT) &&
81  (Buffer->Event.KeyEvent.bKeyDown != FALSE))
82  {
83  break;
84  }
85  }
86 }
_In_ BOOLEAN Read
Definition: strmini.h:479
#define TRUE
Definition: types.h:120
HANDLE StdInput
Definition: consup.c:36
#define FALSE
Definition: types.h:117
#define ReadConsoleInput
Definition: wincon.h:778
#define KEY_EVENT
Definition: wincon.h:128
Definition: bufpool.h:45
unsigned long DWORD
Definition: ntddk_ex.h:95

Referenced by BootLoaderFloppyPage(), BootLoaderPage(), CheckFileSystemPage(), ConfirmDeleteSystemPartitionPage(), ConfirmQuit(), DeletePartitionPage(), DeviceSettingsPage(), FormatPartitionPage(), HandleGenericList(), InstallDirectoryPage(), InstallIntroPage(), LanguagePage(), LicensePage(), PopupError(), ReadCommand(), RepairIntroPage(), SelectFileSystemPage(), SelectPartitionPage(), ShowPartitionSizeInputBox(), UpgradeRepairPage(), and WelcomePage().

◆ CONSOLE_ConInKeyPeek()

BOOLEAN CONSOLE_ConInKeyPeek ( OUT PINPUT_RECORD  Buffer)

Definition at line 89 of file consup.c.

91 {
92  DWORD Read = 0;
93 
94  while (TRUE)
95  {
96  /* Try to get a key press without blocking */
98  return FALSE;
99  if (Read == 0)
100  return FALSE;
101 
102  /* Consume it */
104 
105  if ((Buffer->EventType == KEY_EVENT) &&
106  (Buffer->Event.KeyEvent.bKeyDown != FALSE))
107  {
108  return TRUE;
109  }
110  }
111 }
_In_ BOOLEAN Read
Definition: strmini.h:479
#define TRUE
Definition: types.h:120
HANDLE StdInput
Definition: consup.c:36
BOOL WINAPI PeekConsoleInput(IN HANDLE hConsoleInput, OUT PINPUT_RECORD lpBuffer, IN DWORD nLength, OUT LPDWORD lpNumberOfEventsRead)
Definition: console.c:263
#define FALSE
Definition: types.h:117
#define ReadConsoleInput
Definition: wincon.h:778
#define KEY_EVENT
Definition: wincon.h:128
Definition: bufpool.h:45
unsigned long DWORD
Definition: ntddk_ex.h:95

Referenced by ProgressCountdown().

◆ CONSOLE_ConOutChar()

VOID CONSOLE_ConOutChar ( IN CHAR  c)

Definition at line 114 of file consup.c.

116 {
117  DWORD Written;
118 
120  &c,
121  1,
122  &Written,
123  NULL);
124 }
HANDLE StdOutput
Definition: consup.c:37
const GLubyte * c
Definition: glext.h:8905
unsigned long DWORD
Definition: ntddk_ex.h:95
#define NULL
Definition: types.h:112
#define WriteConsole
Definition: wincon.h:784

Referenced by ClearCommandLine(), and ReadCommand().

◆ CONSOLE_ConOutPrintf()

VOID __cdecl CONSOLE_ConOutPrintf ( IN LPCSTR  szFormat,
  ... 
)

Definition at line 163 of file consup.c.

166 {
167  va_list arg_ptr;
168 
169  va_start(arg_ptr, szFormat);
170  CONSOLE_ConOutPrintfV(szFormat, arg_ptr);
171  va_end(arg_ptr);
172 }
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
va_start(ap, x)
VOID CONSOLE_ConOutPrintfV(IN LPCSTR szFormat, IN va_list args)
Definition: consup.c:145

Referenced by CommandDumpSector(), CommandHelp(), CommandPartInfo(), HelpCls(), HelpDumpSector(), HelpExit(), HelpHelp(), HelpPartInfo(), HexDump(), ReadCommand(), and RecoveryConsole().

◆ CONSOLE_ConOutPrintfV()

VOID CONSOLE_ConOutPrintfV ( IN LPCSTR  szFormat,
IN va_list  args 
)

Definition at line 145 of file consup.c.

148 {
149  CHAR szOut[256];
150  DWORD dwWritten;
151 
152  vsprintf(szOut, szFormat, args);
153 
155  szOut,
156  (ULONG)strlen(szOut),
157  &dwWritten,
158  NULL);
159 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char CHAR
Definition: xmlstorage.h:175
Definition: match.c:390
HANDLE StdOutput
Definition: consup.c:37
unsigned long DWORD
Definition: ntddk_ex.h:95
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define NULL
Definition: types.h:112
#define WriteConsole
Definition: wincon.h:784
unsigned int ULONG
Definition: retypes.h:1

Referenced by CONSOLE_ConOutPrintf().

◆ CONSOLE_ConOutPuts()

VOID CONSOLE_ConOutPuts ( IN LPCSTR  szText)

Definition at line 127 of file consup.c.

129 {
130  DWORD Written;
131 
133  szText,
134  (ULONG)strlen(szText),
135  &Written,
136  NULL);
138  "\n",
139  1,
140  &Written,
141  NULL);
142 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
static const WCHAR szText[]
Definition: dialog.c:139
HANDLE StdOutput
Definition: consup.c:37
unsigned long DWORD
Definition: ntddk_ex.h:95
#define NULL
Definition: types.h:112
#define WriteConsole
Definition: wincon.h:784
unsigned int ULONG
Definition: retypes.h:1

Referenced by DoCommand().

◆ CONSOLE_Flush()

BOOL CONSOLE_Flush ( VOID  )

Definition at line 175 of file consup.c.

176 {
178 }
HANDLE StdInput
Definition: consup.c:36
BOOL WINAPI FlushConsoleInputBuffer(IN HANDLE hConsoleInput)
Definition: console.c:217

Referenced by ProgressCountdown(), RunUSetup(), and SelectFileSystemPage().

◆ CONSOLE_GetCursorX()

SHORT CONSOLE_GetCursorX ( VOID  )

Definition at line 194 of file consup.c.

195 {
197 
199 
200  return csbi.dwCursorPosition.X;
201 }
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:592
ULONG X
Definition: bl.h:1340

Referenced by ReadCommand().

◆ CONSOLE_GetCursorXY()

VOID CONSOLE_GetCursorXY ( OUT PSHORT  x,
OUT PSHORT  y 
)

Definition at line 181 of file consup.c.

184 {
186 
188 
189  *x = csbi.dwCursorPosition.X;
190  *y = csbi.dwCursorPosition.Y;
191 }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:592
ULONG X
Definition: bl.h:1340
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
ULONG Y
Definition: bl.h:1341

Referenced by ReadCommand().

◆ CONSOLE_GetCursorY()

SHORT CONSOLE_GetCursorY ( VOID  )

Definition at line 204 of file consup.c.

205 {
207 
209 
210  return csbi.dwCursorPosition.Y;
211 }
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:592
ULONG Y
Definition: bl.h:1341

Referenced by ReadCommand().

◆ CONSOLE_Init()

BOOLEAN CONSOLE_Init ( VOID  )

Definition at line 45 of file consup.c.

46 {
48 
49  /* Allocate a new console */
50  if (!AllocConsole())
51  return FALSE;
52 
53  /* Get the standard handles */
56 
57  /* Retrieve the size of the console */
59  {
60  FreeConsole();
61  return FALSE;
62  }
63  xScreen = csbi.dwSize.X;
64  yScreen = csbi.dwSize.Y;
65 
66  return TRUE;
67 }
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:74
SHORT xScreen
Definition: consup.c:39
#define TRUE
Definition: types.h:120
HANDLE StdInput
Definition: consup.c:36
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:200
#define FALSE
Definition: types.h:117
HANDLE StdOutput
Definition: consup.c:37
#define STD_INPUT_HANDLE
Definition: winbase.h:264
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:592
ULONG X
Definition: bl.h:1340
BOOL WINAPI FreeConsole(VOID)
Definition: console.c:153
#define STD_OUTPUT_HANDLE
Definition: winbase.h:265
SHORT yScreen
Definition: consup.c:40
ULONG Y
Definition: bl.h:1341

Referenced by RunUSetup().

◆ CONSOLE_InvertTextXY()

VOID CONSOLE_InvertTextXY ( IN SHORT  x,
IN SHORT  y,
IN SHORT  col,
IN SHORT  row 
)

Definition at line 276 of file consup.c.

281 {
282  COORD coPos;
283  DWORD Written;
284 
285  for (coPos.Y = y; coPos.Y < y + row; coPos.Y++)
286  {
287  coPos.X = x;
288 
291  col,
292  coPos,
293  &Written);
294  }
295 }
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:522
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
HANDLE StdOutput
Definition: consup.c:37
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
#define BACKGROUND_WHITE
Definition: consup.h:31
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
ULONG Y
Definition: bl.h:1341
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
#define FOREGROUND_BLUE
Definition: blue.h:61

Referenced by BootLoaderPage(), and DeviceSettingsPage().

◆ CONSOLE_NormalTextXY()

VOID CONSOLE_NormalTextXY ( IN SHORT  x,
IN SHORT  y,
IN SHORT  col,
IN SHORT  row 
)

Definition at line 298 of file consup.c.

303 {
304  COORD coPos;
305  DWORD Written;
306 
307  for (coPos.Y = y; coPos.Y < y + row; coPos.Y++)
308  {
309  coPos.X = x;
310 
313  col,
314  coPos,
315  &Written);
316  }
317 }
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:522
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define FOREGROUND_WHITE
Definition: consup.h:29
HANDLE StdOutput
Definition: consup.c:37
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define BACKGROUND_BLUE
Definition: blue.h:65
ULONG Y
Definition: bl.h:1341
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

Referenced by BootLoaderPage(), and DeviceSettingsPage().

◆ CONSOLE_PrintTextXY()

VOID __cdecl CONSOLE_PrintTextXY ( IN SHORT  x,
IN SHORT  y,
IN LPCSTR  fmt,
  ... 
)

Definition at line 601 of file consup.c.

606 {
607  CHAR buffer[512];
608  va_list ap;
609  COORD coPos;
610  DWORD Written;
611 
612  va_start(ap, fmt);
613  vsprintf(buffer, fmt, ap);
614  va_end(ap);
615 
616  coPos.X = x;
617  coPos.Y = y;
618 
620  buffer,
621  (ULONG)strlen(buffer),
622  coPos,
623  &Written);
624 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char CHAR
Definition: xmlstorage.h:175
GLuint buffer
Definition: glext.h:5915
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define va_end(ap)
Definition: acmsvcex.h:90
HANDLE StdOutput
Definition: consup.c:37
char * va_list
Definition: acmsvcex.h:78
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:404
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
va_start(ap, x)
Definition: bl.h:1338
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
unsigned int ULONG
Definition: retypes.h:1
ULONG Y
Definition: bl.h:1341
Definition: dsound.c:943

Referenced by CreateExtendedPartitionPage(), CreateLogicalPartitionPage(), CreatePrimaryPartitionPage(), DeletePartitionPage(), and SelectFileSystemPage().

◆ CONSOLE_PrintTextXYN()

VOID __cdecl CONSOLE_PrintTextXYN ( IN SHORT  x,
IN SHORT  y,
IN SHORT  len,
IN LPCSTR  fmt,
  ... 
)

Definition at line 628 of file consup.c.

634 {
635  CHAR buffer[512];
636  va_list ap;
637  COORD coPos;
638  SHORT Length;
639  DWORD Written;
640 
641  va_start(ap, fmt);
642  vsprintf(buffer, fmt, ap);
643  va_end(ap);
644 
645  coPos.X = x;
646  coPos.Y = y;
647 
649  if (Length > len - 1)
650  Length = len - 1;
651 
653  buffer,
654  Length,
655  coPos,
656  &Written);
657 
658  coPos.X += Length;
659 
660  if (len > Length)
661  {
663  ' ',
664  len - Length,
665  coPos,
666  &Written);
667  }
668 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char CHAR
Definition: xmlstorage.h:175
GLuint buffer
Definition: glext.h:5915
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:557
#define va_end(ap)
Definition: acmsvcex.h:90
short SHORT
Definition: pedump.c:59
HANDLE StdOutput
Definition: consup.c:37
char * va_list
Definition: acmsvcex.h:78
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:404
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
va_start(ap, x)
GLenum GLsizei len
Definition: glext.h:6722
Definition: bl.h:1338
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
ULONG Y
Definition: bl.h:1341
Definition: dsound.c:943

◆ CONSOLE_SetCursorType()

VOID CONSOLE_SetCursorType ( IN BOOL  bInsert,
IN BOOL  bVisible 
)

Definition at line 214 of file consup.c.

217 {
219 
220  cci.dwSize = bInsert ? 10 : 99;
221  cci.bVisible = bVisible;
222 
224 }
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI SetConsoleCursorInfo(IN HANDLE hConsoleOutput, IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo)
Definition: console.c:615
static BOOL bInsert
Definition: cmdinput.c:121

Referenced by InstallDirectoryPage(), ReadCommand(), RunUSetup(), and ShowPartitionSizeInputBox().

◆ CONSOLE_SetCursorXY()

VOID CONSOLE_SetCursorXY ( IN SHORT  x,
IN SHORT  y 
)

Definition at line 227 of file consup.c.

230 {
231  COORD coPos;
232 
233  coPos.X = x;
234  coPos.Y = y;
236 }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI SetConsoleCursorPosition(IN HANDLE hConsoleOutput, IN COORD dwCursorPosition)
Definition: console.c:638
ULONG X
Definition: bl.h:1340
Definition: bl.h:1338
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
ULONG Y
Definition: bl.h:1341

Referenced by ClearCommandLine(), CommandCls(), InstallDirectoryPage(), ReadCommand(), RecoveryConsole(), and ShowPartitionSizeInputBox().

◆ CONSOLE_SetHighlightedTextXY()

VOID CONSOLE_SetHighlightedTextXY ( IN SHORT  x,
IN SHORT  y,
IN LPCSTR  Text 
)

Definition at line 572 of file consup.c.

576 {
577  COORD coPos;
578  DWORD Length;
579  DWORD Written;
580 
581  coPos.X = x;
582  coPos.Y = y;
583 
584  Length = (ULONG)strlen(Text);
585 
588  Length,
589  coPos,
590  &Written);
591 
593  Text,
594  Length,
595  coPos,
596  &Written);
597 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:522
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define FOREGROUND_WHITE
Definition: consup.h:29
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:404
ULONG X
Definition: bl.h:1340
#define FOREGROUND_INTENSITY
Definition: blue.h:64
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define BACKGROUND_BLUE
Definition: blue.h:65
unsigned int ULONG
Definition: retypes.h:1
ULONG Y
Definition: bl.h:1341
char * Text
Definition: combotst.c:136

Referenced by CONSOLE_SetStyledText().

◆ CONSOLE_SetInputTextXY()

VOID CONSOLE_SetInputTextXY ( IN SHORT  x,
IN SHORT  y,
IN SHORT  len,
IN LPCWSTR  Text 
)

Definition at line 357 of file consup.c.

362 {
363  COORD coPos;
364  SHORT Length;
365  DWORD Written;
366 
367  coPos.X = x;
368  coPos.Y = y;
369 
370  Length = (SHORT)wcslen(Text);
371  if (Length > len - 1)
372  Length = len - 1;
373 
376  len,
377  coPos,
378  &Written);
379 
381  Text,
382  (ULONG)Length,
383  coPos,
384  &Written);
385 
386  coPos.X += Length;
387  if (len > Length)
388  {
390  ' ',
391  len - Length,
392  coPos,
393  &Written);
394  }
395 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:522
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:557
BOOL WINAPI WriteConsoleOutputCharacterW(HANDLE hConsoleOutput, IN LPCWSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:448
short SHORT
Definition: pedump.c:59
HANDLE StdOutput
Definition: consup.c:37
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
GLenum GLsizei len
Definition: glext.h:6722
Definition: bl.h:1338
#define BACKGROUND_WHITE
Definition: consup.h:31
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
unsigned int ULONG
Definition: retypes.h:1
ULONG Y
Definition: bl.h:1341
char * Text
Definition: combotst.c:136

Referenced by InstallDirectoryPage(), and ShowPartitionSizeInputBox().

◆ CONSOLE_SetInvertedTextXY()

VOID CONSOLE_SetInvertedTextXY ( IN SHORT  x,
IN SHORT  y,
IN LPCSTR  Text 
)

Definition at line 544 of file consup.c.

548 {
549  COORD coPos;
550  DWORD Length;
551  DWORD Written;
552 
553  coPos.X = x;
554  coPos.Y = y;
555 
556  Length = (ULONG)strlen(Text);
557 
560  Length,
561  coPos,
562  &Written);
563 
565  Text,
566  Length,
567  coPos,
568  &Written);
569 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:522
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:404
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
#define BACKGROUND_WHITE
Definition: consup.h:31
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
unsigned int ULONG
Definition: retypes.h:1
ULONG Y
Definition: bl.h:1341
char * Text
Definition: combotst.c:136
#define FOREGROUND_BLUE
Definition: blue.h:61

Referenced by DrawFileSystemList().

◆ CONSOLE_SetStatusText()

VOID __cdecl CONSOLE_SetStatusText ( IN LPCSTR  fmt,
  ... 
)

Definition at line 486 of file consup.c.

489 {
490  va_list ap;
491 
492  va_start(ap, fmt);
494  va_end(ap);
495 }
VOID CONSOLE_SetStatusTextV(IN LPCSTR fmt, IN va_list args)
Definition: consup.c:477
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
va_start(ap, x)
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
Definition: dsound.c:943

Referenced by BootLoaderPage(), CreateExtendedPartitionPage(), CreateLogicalPartitionPage(), CreatePrimaryPartitionPage(), FileCopyCallback(), FormatPartitionPage(), QuitPage(), RegistryPage(), RegistryStatus(), and SelectPartitionPage().

◆ CONSOLE_SetStatusTextAutoFitX()

VOID __cdecl CONSOLE_SetStatusTextAutoFitX ( IN SHORT  x,
IN LPCSTR  fmt,
  ... 
)

Definition at line 518 of file consup.c.

522 {
523  CHAR Buffer[128];
524  DWORD Length;
525  va_list ap;
526 
527  va_start(ap, fmt);
528  vsprintf(Buffer, fmt, ap);
529  va_end(ap);
530 
532 
533  if (Length + x <= 79)
534  {
536  }
537  else
538  {
540  }
541 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char CHAR
Definition: xmlstorage.h:175
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
Definition: bufpool.h:45
VOID __cdecl CONSOLE_SetStatusTextX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:464
unsigned long DWORD
Definition: ntddk_ex.h:95
va_start(ap, x)
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
unsigned int ULONG
Definition: retypes.h:1
Definition: dsound.c:943

◆ CONSOLE_SetStatusTextV()

VOID CONSOLE_SetStatusTextV ( IN LPCSTR  fmt,
IN va_list  args 
)

Definition at line 477 of file consup.c.

480 {
482 }
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:427
Definition: match.c:390
Definition: dsound.c:943

Referenced by CONSOLE_SetStatusText(), and RegistryStatus().

◆ CONSOLE_SetStatusTextX()

VOID __cdecl CONSOLE_SetStatusTextX ( IN SHORT  x,
IN LPCSTR  fmt,
  ... 
)

Definition at line 464 of file consup.c.

468 {
469  va_list ap;
470 
471  va_start(ap, fmt);
473  va_end(ap);
474 }
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:427
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
va_start(ap, x)
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
Definition: dsound.c:943

Referenced by CONSOLE_SetStatusTextAutoFitX(), and CONSOLE_SetStyledText().

◆ CONSOLE_SetStatusTextXV()

VOID CONSOLE_SetStatusTextXV ( IN SHORT  x,
IN LPCSTR  fmt,
IN va_list  args 
)

Definition at line 427 of file consup.c.

431 {
432  COORD coPos;
433  DWORD Written;
434  CHAR Buffer[128];
435 
436  vsprintf(Buffer, fmt, args);
437 
438  coPos.X = 0;
439  coPos.Y = yScreen - 1;
440 
443  xScreen,
444  coPos,
445  &Written);
446 
448  ' ',
449  xScreen,
450  coPos,
451  &Written);
452 
453  coPos.X = x;
454 
456  Buffer,
457  (ULONG)strlen(Buffer),
458  coPos,
459  &Written);
460 }
SHORT xScreen
Definition: consup.c:39
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:522
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char CHAR
Definition: xmlstorage.h:175
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
Definition: match.c:390
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:557
HANDLE StdOutput
Definition: consup.c:37
Definition: bufpool.h:45
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:404
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
SHORT yScreen
Definition: consup.c:40
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define BACKGROUND_WHITE
Definition: consup.h:31
unsigned int ULONG
Definition: retypes.h:1
ULONG Y
Definition: bl.h:1341
Definition: dsound.c:943

Referenced by CONSOLE_SetStatusTextV(), and CONSOLE_SetStatusTextX().

◆ CONSOLE_SetStyledText()

VOID CONSOLE_SetStyledText ( IN SHORT  x,
IN SHORT  y,
IN INT  Flags,
IN LPCSTR  Text 
)

Definition at line 671 of file consup.c.

676 {
677  COORD coPos;
678  DWORD Length;
679 
680  coPos.X = x;
681  coPos.Y = y;
682 
683  Length = (ULONG)strlen(Text);
684 
685  if (Flags & TEXT_TYPE_STATUS)
686  {
687  coPos.X = x;
688  coPos.Y = yScreen - 1;
689  }
690  else /* TEXT_TYPE_REGULAR (Default) */
691  {
692  coPos.X = x;
693  coPos.Y = y;
694  }
695 
696  if (Flags & TEXT_ALIGN_CENTER)
697  {
698  coPos.X = (xScreen - Length) / 2;
699  }
700  else if(Flags & TEXT_ALIGN_RIGHT)
701  {
702  coPos.X = coPos.X - Length;
703 
705  {
706  coPos.X -= 1;
707  }
708  else if (Flags & TEXT_PADDING_MEDIUM)
709  {
710  coPos.X -= 2;
711  }
712  else if (Flags & TEXT_PADDING_BIG)
713  {
714  coPos.X -= 3;
715  }
716  }
717  else /* TEXT_ALIGN_LEFT (Default) */
718  {
720  {
721  coPos.X += 1;
722  }
723  else if (Flags & TEXT_PADDING_MEDIUM)
724  {
725  coPos.X += 2;
726  }
727  else if (Flags & TEXT_PADDING_BIG)
728  {
729  coPos.X += 3;
730  }
731  }
732 
733  if (Flags & TEXT_TYPE_STATUS)
734  {
735  CONSOLE_SetStatusTextX(coPos.X, Text);
736  }
737  else /* TEXT_TYPE_REGULAR (Default) */
738  {
740  {
741  CONSOLE_SetHighlightedTextXY(coPos.X, coPos.Y, Text);
742  }
743  else if (Flags & TEXT_STYLE_UNDERLINE)
744  {
745  CONSOLE_SetUnderlinedTextXY(coPos.X, coPos.Y, Text);
746  }
747  else /* TEXT_STYLE_NORMAL (Default) */
748  {
749  CONSOLE_SetTextXY(coPos.X, coPos.Y, Text);
750  }
751  }
752 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
SHORT xScreen
Definition: consup.c:39
VOID CONSOLE_SetTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:320
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
#define TEXT_PADDING_MEDIUM
Definition: consup.h:50
#define TEXT_TYPE_STATUS
Definition: consup.h:40
#define TEXT_ALIGN_CENTER
Definition: consup.h:46
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define TEXT_ALIGN_RIGHT
Definition: consup.h:44
#define TEXT_STYLE_UNDERLINE
Definition: consup.h:36
#define TEXT_STYLE_HIGHLIGHT
Definition: consup.h:35
ULONG X
Definition: bl.h:1340
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
VOID __cdecl CONSOLE_SetStatusTextX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:464
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
SHORT yScreen
Definition: consup.c:40
VOID CONSOLE_SetHighlightedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:572
#define TEXT_PADDING_BIG
Definition: consup.h:51
VOID CONSOLE_SetUnderlinedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:398
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
unsigned int ULONG
Definition: retypes.h:1
#define TEXT_PADDING_SMALL
Definition: consup.h:49
ULONG Y
Definition: bl.h:1341
char * Text
Definition: combotst.c:136

Referenced by MUIDisplayPage(), and MUISetStyledText().

◆ CONSOLE_SetTextXY()

VOID CONSOLE_SetTextXY ( IN SHORT  x,
IN SHORT  y,
IN LPCSTR  Text 
)

Definition at line 320 of file consup.c.

324 {
325  COORD coPos;
326  DWORD Written;
327 
328  coPos.X = x;
329  coPos.Y = y;
330 
332  Text,
333  (ULONG)strlen(Text),
334  coPos,
335  &Written);
336 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:404
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
unsigned int ULONG
Definition: retypes.h:1
ULONG Y
Definition: bl.h:1341
char * Text
Definition: combotst.c:136

Referenced by CONSOLE_SetStyledText(), CreateExtendedPartitionPage(), CreateLogicalPartitionPage(), CreatePrimaryPartitionPage(), DrawFileSystemList(), DrawGenericListCurrentItem(), DrawProgressBar(), MUISetText(), and SelectFileSystemPage().

◆ CONSOLE_SetUnderlinedTextXY()

VOID CONSOLE_SetUnderlinedTextXY ( IN SHORT  x,
IN SHORT  y,
IN LPCSTR  Text 
)

Definition at line 398 of file consup.c.

402 {
403  COORD coPos;
404  DWORD Length;
405  DWORD Written;
406 
407  coPos.X = x;
408  coPos.Y = y;
409 
410  Length = (ULONG)strlen(Text);
411 
413  Text,
414  Length,
415  coPos,
416  &Written);
417 
418  coPos.Y++;
420  0xCD,
421  Length,
422  coPos,
423  &Written);
424 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:557
HANDLE StdOutput
Definition: consup.c:37
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:404
ULONG X
Definition: bl.h:1340
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: bl.h:1338
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
unsigned int ULONG
Definition: retypes.h:1
ULONG Y
Definition: bl.h:1341
char * Text
Definition: combotst.c:136

Referenced by CONSOLE_SetStyledText().

Variable Documentation

◆ StdInput

◆ StdOutput

◆ xScreen

◆ yScreen