ReactOS  0.4.15-dev-1206-g731eddf
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 230 of file consup.c.

231 {
232  COORD coPos;
233  DWORD Written;
234 
235  coPos.X = 0;
236  coPos.Y = 0;
237 
238  /*
239  * Hide everything under the same foreground & background colors, so that
240  * the actual color and text blanking reset does not create a visual "blinking".
241  * We do this because we cannot do the screen scrolling trick that would
242  * allow to change both the text and the colors at the same time (the
243  * function is currently not available in our console "emulation" layer).
244  */
247  xScreen * yScreen,
248  coPos,
249  &Written);
250 
251  /* Blank the text */
253  ' ',
254  xScreen * yScreen,
255  coPos,
256  &Written);
257 
258  /* Reset the actual foreground & background colors */
261  xScreen * yScreen,
262  coPos,
263  &Written);
264 }
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 746 of file consup.c.

751 {
752  COORD coPos;
753 
754  coPos.X = x;
755  coPos.Y = y;
756 
757  if (Flags & TEXT_TYPE_STATUS)
758  {
759  coPos.X = x;
760  coPos.Y = yScreen - 1;
761  }
762  else /* TEXT_TYPE_REGULAR (Default) */
763  {
764  coPos.X = x;
765  coPos.Y = y;
766  }
767 
768  if (Flags & TEXT_ALIGN_CENTER)
769  {
770  coPos.X = (xScreen - Length) / 2;
771  }
772  else if(Flags & TEXT_ALIGN_RIGHT)
773  {
774  coPos.X = coPos.X - Length;
775 
777  {
778  coPos.X -= 1;
779  }
780  else if (Flags & TEXT_PADDING_MEDIUM)
781  {
782  coPos.X -= 2;
783  }
784  else if (Flags & TEXT_PADDING_BIG)
785  {
786  coPos.X -= 3;
787  }
788  }
789  else /* TEXT_ALIGN_LEFT (Default) */
790  {
792  {
793  coPos.X += 1;
794  }
795  else if (Flags & TEXT_PADDING_MEDIUM)
796  {
797  coPos.X += 2;
798  }
799  else if (Flags & TEXT_PADDING_BIG)
800  {
801  coPos.X += 3;
802  }
803  }
804 
805  if (Flags & TEXT_TYPE_STATUS)
806  {
808  }
809  else /* TEXT_TYPE_REGULAR (Default) */
810  {
811  CONSOLE_ClearTextXY(coPos.X, coPos.Y, Length);
812  }
813 }
SHORT xScreen
Definition: consup.c:39
VOID CONSOLE_ClearTextXY(IN SHORT x, IN SHORT y, IN SHORT Length)
Definition: consup.c:330
#define TEXT_PADDING_MEDIUM
Definition: consup.h:50
static VOID CONSOLE_ClearStatusTextX(IN SHORT x, IN SHORT Length)
Definition: consup.c:490
#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
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
ULONG X
Definition: bl.h:1340
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
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 330 of file consup.c.

333 {
334  COORD coPos;
335  DWORD Written;
336 
337  coPos.X = x;
338  coPos.Y = y;
339 
341  ' ',
342  Length,
343  coPos,
344  &Written);
345 }
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
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 61 of file consup.c.

63 {
64  DWORD Read;
65 
66  while (TRUE)
67  {
68  /* Wait for a key press */
70 
71  if ((Buffer->EventType == KEY_EVENT) &&
72  (Buffer->Event.KeyEvent.bKeyDown != FALSE))
73  {
74  break;
75  }
76  }
77 }
_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:781
#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 80 of file consup.c.

82 {
83  DWORD Read = 0;
84 
85  while (TRUE)
86  {
87  /* Try to get a key press without blocking */
89  return FALSE;
90  if (Read == 0)
91  return FALSE;
92 
93  /* Consume it */
95 
96  if ((Buffer->EventType == KEY_EVENT) &&
97  (Buffer->Event.KeyEvent.bKeyDown != FALSE))
98  {
99  return TRUE;
100  }
101  }
102 }
_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:781
#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 105 of file consup.c.

107 {
108  DWORD Written;
109 
111  &c,
112  1,
113  &Written,
114  NULL);
115 }
HANDLE StdOutput
Definition: consup.c:37
smooth NULL
Definition: ftsmooth.c:416
const GLubyte * c
Definition: glext.h:8905
unsigned long DWORD
Definition: ntddk_ex.h:95
#define WriteConsole
Definition: wincon.h:787

Referenced by ClearCommandLine(), and ReadCommand().

◆ CONSOLE_ConOutPrintf()

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

Definition at line 154 of file consup.c.

157 {
158  va_list arg_ptr;
159 
160  va_start(arg_ptr, szFormat);
161  CONSOLE_ConOutPrintfV(szFormat, arg_ptr);
162  va_end(arg_ptr);
163 }
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
VOID CONSOLE_ConOutPrintfV(IN LPCSTR szFormat, IN va_list args)
Definition: consup.c:136
#define va_start(ap, A)
Definition: acmsvcex.h:91

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 136 of file consup.c.

139 {
140  CHAR szOut[256];
141  DWORD dwWritten;
142 
143  vsprintf(szOut, szFormat, args);
144 
146  szOut,
147  (ULONG)strlen(szOut),
148  &dwWritten,
149  NULL);
150 }
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
smooth NULL
Definition: ftsmooth.c:416
unsigned long DWORD
Definition: ntddk_ex.h:95
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define WriteConsole
Definition: wincon.h:787
unsigned int ULONG
Definition: retypes.h:1

Referenced by CONSOLE_ConOutPrintf().

◆ CONSOLE_ConOutPuts()

VOID CONSOLE_ConOutPuts ( IN LPCSTR  szText)

Definition at line 118 of file consup.c.

120 {
121  DWORD Written;
122 
124  szText,
125  (ULONG)strlen(szText),
126  &Written,
127  NULL);
129  "\n",
130  1,
131  &Written,
132  NULL);
133 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
static const WCHAR szText[]
Definition: dialog.c:139
HANDLE StdOutput
Definition: consup.c:37
smooth NULL
Definition: ftsmooth.c:416
unsigned long DWORD
Definition: ntddk_ex.h:95
#define WriteConsole
Definition: wincon.h:787
unsigned int ULONG
Definition: retypes.h:1

Referenced by DoCommand().

◆ CONSOLE_Flush()

BOOL CONSOLE_Flush ( VOID  )

Definition at line 166 of file consup.c.

167 {
169 }
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 185 of file consup.c.

186 {
188 
190 
191  return csbi.dwCursorPosition.X;
192 }
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 172 of file consup.c.

175 {
177 
179 
180  *x = csbi.dwCursorPosition.X;
181  *y = csbi.dwCursorPosition.Y;
182 }
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:200
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:592
ULONG X
Definition: bl.h:1340
#define STD_OUTPUT_HANDLE
Definition: winbase.h:265
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 195 of file consup.c.

196 {
198 
200 
201  return csbi.dwCursorPosition.Y;
202 }
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  if (!AllocConsole())
49  return FALSE;
50 
54  return FALSE;
55  xScreen = csbi.dwSize.X;
56  yScreen = csbi.dwSize.Y;
57  return TRUE;
58 }
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
#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 267 of file consup.c.

272 {
273  COORD coPos;
274  DWORD Written;
275 
276  for (coPos.Y = y; coPos.Y < y + row; coPos.Y++)
277  {
278  coPos.X = x;
279 
282  col,
283  coPos,
284  &Written);
285  }
286 }
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 289 of file consup.c.

294 {
295  COORD coPos;
296  DWORD Written;
297 
298  for (coPos.Y = y; coPos.Y < y + row; coPos.Y++)
299  {
300  coPos.X = x;
301 
304  col,
305  coPos,
306  &Written);
307  }
308 }
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 592 of file consup.c.

597 {
598  CHAR buffer[512];
599  va_list ap;
600  COORD coPos;
601  DWORD Written;
602 
603  va_start(ap, fmt);
604  vsprintf(buffer, fmt, ap);
605  va_end(ap);
606 
607  coPos.X = x;
608  coPos.Y = y;
609 
611  buffer,
612  (ULONG)strlen(buffer),
613  coPos,
614  &Written);
615 }
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
Definition: bl.h:1338
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define va_start(ap, A)
Definition: acmsvcex.h:91
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(), FormatPartitionPage(), and SelectFileSystemPage().

◆ CONSOLE_PrintTextXYN()

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

Definition at line 619 of file consup.c.

625 {
626  CHAR buffer[512];
627  va_list ap;
628  COORD coPos;
629  SHORT Length;
630  DWORD Written;
631 
632  va_start(ap, fmt);
633  vsprintf(buffer, fmt, ap);
634  va_end(ap);
635 
636  coPos.X = x;
637  coPos.Y = y;
638 
640  if (Length > len - 1)
641  Length = len - 1;
642 
644  buffer,
645  Length,
646  coPos,
647  &Written);
648 
649  coPos.X += Length;
650 
651  if (len > Length)
652  {
654  ' ',
655  len - Length,
656  coPos,
657  &Written);
658  }
659 }
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
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
#define va_start(ap, A)
Definition: acmsvcex.h:91
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 205 of file consup.c.

208 {
210 
211  cci.dwSize = bInsert ? 10 : 99;
212  cci.bVisible = bVisible;
213 
215 }
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 218 of file consup.c.

221 {
222  COORD coPos;
223 
224  coPos.X = x;
225  coPos.Y = y;
227 }
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 563 of file consup.c.

567 {
568  COORD coPos;
569  DWORD Length;
570  DWORD Written;
571 
572  coPos.X = x;
573  coPos.Y = y;
574 
575  Length = (ULONG)strlen(Text);
576 
579  Length,
580  coPos,
581  &Written);
582 
584  Text,
585  Length,
586  coPos,
587  &Written);
588 }
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
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 348 of file consup.c.

353 {
354  COORD coPos;
355  SHORT Length;
356  DWORD Written;
357 
358  coPos.X = x;
359  coPos.Y = y;
360 
361  Length = (SHORT)wcslen(Text);
362  if (Length > len - 1)
363  Length = len - 1;
364 
367  len,
368  coPos,
369  &Written);
370 
372  Text,
373  (ULONG)Length,
374  coPos,
375  &Written);
376 
377  coPos.X += Length;
378  if (len > Length)
379  {
381  ' ',
382  len - Length,
383  coPos,
384  &Written);
385  }
386 }
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
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
unsigned int ULONG
Definition: retypes.h:1
ULONG Y
Definition: bl.h:1341
size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
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 535 of file consup.c.

539 {
540  COORD coPos;
541  DWORD Length;
542  DWORD Written;
543 
544  coPos.X = x;
545  coPos.Y = y;
546 
547  Length = (ULONG)strlen(Text);
548 
551  Length,
552  coPos,
553  &Written);
554 
556  Text,
557  Length,
558  coPos,
559  &Written);
560 }
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
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 477 of file consup.c.

480 {
481  va_list ap;
482 
483  va_start(ap, fmt);
485  va_end(ap);
486 }
VOID CONSOLE_SetStatusTextV(IN LPCSTR fmt, IN va_list args)
Definition: consup.c:468
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
#define va_start(ap, A)
Definition: acmsvcex.h:91
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
Definition: dsound.c:943

Referenced by BootLoaderPage(), CheckFileSystemPage(), 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 509 of file consup.c.

513 {
514  CHAR Buffer[128];
515  DWORD Length;
516  va_list ap;
517 
518  va_start(ap, fmt);
519  vsprintf(Buffer, fmt, ap);
520  va_end(ap);
521 
523 
524  if (Length + x <= 79)
525  {
527  }
528  else
529  {
531  }
532 }
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:455
unsigned long DWORD
Definition: ntddk_ex.h:95
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define va_start(ap, A)
Definition: acmsvcex.h:91
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 468 of file consup.c.

471 {
473 }
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:418
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 455 of file consup.c.

459 {
460  va_list ap;
461 
462  va_start(ap, fmt);
464  va_end(ap);
465 }
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:418
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
#define va_start(ap, A)
Definition: acmsvcex.h:91
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 418 of file consup.c.

422 {
423  COORD coPos;
424  DWORD Written;
425  CHAR Buffer[128];
426 
427  vsprintf(Buffer, fmt, args);
428 
429  coPos.X = 0;
430  coPos.Y = yScreen - 1;
431 
434  xScreen,
435  coPos,
436  &Written);
437 
439  ' ',
440  xScreen,
441  coPos,
442  &Written);
443 
444  coPos.X = x;
445 
447  Buffer,
448  (ULONG)strlen(Buffer),
449  coPos,
450  &Written);
451 }
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 662 of file consup.c.

667 {
668  COORD coPos;
669  DWORD Length;
670 
671  coPos.X = x;
672  coPos.Y = y;
673 
674  Length = (ULONG)strlen(Text);
675 
676  if (Flags & TEXT_TYPE_STATUS)
677  {
678  coPos.X = x;
679  coPos.Y = yScreen - 1;
680  }
681  else /* TEXT_TYPE_REGULAR (Default) */
682  {
683  coPos.X = x;
684  coPos.Y = y;
685  }
686 
687  if (Flags & TEXT_ALIGN_CENTER)
688  {
689  coPos.X = (xScreen - Length) / 2;
690  }
691  else if(Flags & TEXT_ALIGN_RIGHT)
692  {
693  coPos.X = coPos.X - Length;
694 
696  {
697  coPos.X -= 1;
698  }
699  else if (Flags & TEXT_PADDING_MEDIUM)
700  {
701  coPos.X -= 2;
702  }
703  else if (Flags & TEXT_PADDING_BIG)
704  {
705  coPos.X -= 3;
706  }
707  }
708  else /* TEXT_ALIGN_LEFT (Default) */
709  {
711  {
712  coPos.X += 1;
713  }
714  else if (Flags & TEXT_PADDING_MEDIUM)
715  {
716  coPos.X += 2;
717  }
718  else if (Flags & TEXT_PADDING_BIG)
719  {
720  coPos.X += 3;
721  }
722  }
723 
724  if (Flags & TEXT_TYPE_STATUS)
725  {
726  CONSOLE_SetStatusTextX(coPos.X, Text);
727  }
728  else /* TEXT_TYPE_REGULAR (Default) */
729  {
731  {
732  CONSOLE_SetHighlightedTextXY(coPos.X, coPos.Y, Text);
733  }
734  else if (Flags & TEXT_STYLE_UNDERLINE)
735  {
736  CONSOLE_SetUnderlinedTextXY(coPos.X, coPos.Y, Text);
737  }
738  else /* TEXT_STYLE_NORMAL (Default) */
739  {
740  CONSOLE_SetTextXY(coPos.X, coPos.Y, Text);
741  }
742  }
743 }
SHORT xScreen
Definition: consup.c:39
VOID CONSOLE_SetTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:311
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
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define TEXT_STYLE_UNDERLINE
Definition: consup.h:36
#define TEXT_STYLE_HIGHLIGHT
Definition: consup.h:35
ULONG X
Definition: bl.h:1340
VOID __cdecl CONSOLE_SetStatusTextX(IN SHORT x, IN LPCSTR fmt,...)
Definition: consup.c:455
unsigned long DWORD
Definition: ntddk_ex.h:95
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
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:563
#define TEXT_PADDING_BIG
Definition: consup.h:51
VOID CONSOLE_SetUnderlinedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:389
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 311 of file consup.c.

315 {
316  COORD coPos;
317  DWORD Written;
318 
319  coPos.X = x;
320  coPos.Y = y;
321 
323  Text,
324  (ULONG)strlen(Text),
325  coPos,
326  &Written);
327 }
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 CheckFileSystemPage(), 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 389 of file consup.c.

393 {
394  COORD coPos;
395  DWORD Length;
396  DWORD Written;
397 
398  coPos.X = x;
399  coPos.Y = y;
400 
401  Length = (ULONG)strlen(Text);
402 
404  Text,
405  Length,
406  coPos,
407  &Written);
408 
409  coPos.Y++;
411  0xCD,
412  Length,
413  coPos,
414  &Written);
415 }
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
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