ReactOS  0.4.13-dev-99-g7e18b6d
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 (PSHORT x, 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_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 235 of file consup.c.

236 {
237  COORD coPos;
238  DWORD Written;
239 
240  coPos.X = 0;
241  coPos.Y = 0;
242 
244  StdOutput,
246  xScreen * yScreen,
247  coPos,
248  &Written);
249 
251  StdOutput,
252  ' ',
253  xScreen * yScreen,
254  coPos,
255  &Written);
256 }
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:474
#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:509
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: wincon.h:43
ULONG Y
Definition: bl.h:1341

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

◆ 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.

759 {
760  COORD coPos;
761 
762  coPos.X = x;
763  coPos.Y = y;
764 
765  if (Flags & TEXT_TYPE_STATUS)
766  {
767  coPos.X = x;
768  coPos.Y = yScreen - 1;
769  }
770  else /* TEXT_TYPE_REGULAR (Default) */
771  {
772  coPos.X = x;
773  coPos.Y = y;
774  }
775 
776  if (Flags & TEXT_ALIGN_CENTER)
777  {
778  coPos.X = (xScreen - Length) /2;
779  }
780  else if(Flags & TEXT_ALIGN_RIGHT)
781  {
782  coPos.X = coPos.X - Length;
783 
785  {
786  coPos.X -= 1;
787  }
788  else if (Flags & TEXT_PADDING_MEDIUM)
789  {
790  coPos.X -= 2;
791  }
792  else if (Flags & TEXT_PADDING_BIG)
793  {
794  coPos.X -= 3;
795  }
796  }
797  else /* TEXT_ALIGN_LEFT (Default) */
798  {
800  {
801  coPos.X += 1;
802  }
803  else if (Flags & TEXT_PADDING_MEDIUM)
804  {
805  coPos.X += 2;
806  }
807  else if (Flags & TEXT_PADDING_BIG)
808  {
809  coPos.X += 3;
810  }
811  }
812 
813  if (Flags & TEXT_TYPE_STATUS)
814  {
816  }
817  else /* TEXT_TYPE_REGULAR (Default) */
818  {
819  CONSOLE_ClearTextXY(coPos.X, coPos.Y, Length);
820  }
821 }
SHORT xScreen
Definition: consup.c:39
#define TEXT_PADDING_MEDIUM
Definition: consup.h:50
static VOID CONSOLE_ClearStatusTextX(IN SHORT x, IN SHORT Length)
Definition: consup.c:494
#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
static VOID CONSOLE_ClearTextXY(IN SHORT x, IN SHORT y, IN SHORT Length)
Definition: consup.c:326
_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().

◆ CONSOLE_ConInKey()

VOID CONSOLE_ConInKey ( OUT PINPUT_RECORD  Buffer)

Definition at line 62 of file consup.c.

64 {
65  DWORD Read;
66 
67  while (TRUE)
68  {
69  /* Wait for a key press */
71 
72  if ((Buffer->EventType == KEY_EVENT) &&
73  (Buffer->Event.KeyEvent.bKeyDown != FALSE))
74  {
75  break;
76  }
77  }
78 }
_In_ BOOLEAN Read
Definition: strmini.h:479
#define TRUE
Definition: types.h:120
HANDLE StdInput
Definition: consup.c:36
#define ReadConsoleInput
Definition: wincon.h:766
#define KEY_EVENT
Definition: wincon.h:122
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 81 of file consup.c.

83 {
84  DWORD Read = 0;
85 
86  while (TRUE)
87  {
88  /* Try to get a key press without blocking */
90  return FALSE;
91  if (Read == 0)
92  return FALSE;
93 
94  /* Consume it */
96 
97  if ((Buffer->EventType == KEY_EVENT) &&
98  (Buffer->Event.KeyEvent.bKeyDown != FALSE))
99  {
100  return TRUE;
101  }
102  }
103 }
_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:215
#define ReadConsoleInput
Definition: wincon.h:766
#define KEY_EVENT
Definition: wincon.h:122
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 106 of file consup.c.

108 {
109  DWORD Written;
110 
111  WriteConsole(
112  StdOutput,
113  &c,
114  1,
115  &Written,
116  NULL);
117 }
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:772

Referenced by ClearCommandLine(), and ReadCommand().

◆ CONSOLE_ConOutPrintf()

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

Definition at line 159 of file consup.c.

162 {
163  va_list arg_ptr;
164 
165  va_start(arg_ptr, szFormat);
166  CONSOLE_ConOutPrintfV(szFormat, arg_ptr);
167  va_end(arg_ptr);
168 }
#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:140
#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 140 of file consup.c.

143 {
144  CHAR szOut[256];
145  DWORD dwWritten;
146 
147  vsprintf(szOut, szFormat, args);
148 
149  WriteConsole(
150  StdOutput,
151  szOut,
152  (ULONG)strlen(szOut),
153  &dwWritten,
154  NULL);
155 }
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:772
unsigned int ULONG
Definition: retypes.h:1

Referenced by CONSOLE_ConOutPrintf().

◆ CONSOLE_ConOutPuts()

VOID CONSOLE_ConOutPuts ( IN LPCSTR  szText)

Definition at line 120 of file consup.c.

122 {
123  DWORD Written;
124 
125  WriteConsole(
126  StdOutput,
127  szText,
128  (ULONG)strlen(szText),
129  &Written,
130  NULL);
131  WriteConsole(
132  StdOutput,
133  "\n",
134  1,
135  &Written,
136  NULL);
137 }
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:772
unsigned int ULONG
Definition: retypes.h:1

Referenced by DoCommand().

◆ CONSOLE_Flush()

BOOL CONSOLE_Flush ( VOID  )

Definition at line 171 of file consup.c.

172 {
174 }
HANDLE StdInput
Definition: consup.c:36
BOOL WINAPI FlushConsoleInputBuffer(IN HANDLE hConsoleInput)
Definition: console.c:169

Referenced by ProgressCountdown(), and RunUSetup().

◆ CONSOLE_GetCursorX()

SHORT CONSOLE_GetCursorX ( VOID  )

Definition at line 190 of file consup.c.

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

Referenced by ReadCommand().

◆ CONSOLE_GetCursorXY()

VOID CONSOLE_GetCursorXY ( PSHORT  x,
PSHORT  y 
)

Definition at line 177 of file consup.c.

180 {
182 
184 
185  *x = csbi.dwCursorPosition.X;
186  *y = csbi.dwCursorPosition.Y;
187 }
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:152
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:544
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 200 of file consup.c.

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

Referenced by ReadCommand().

◆ CONSOLE_Init()

BOOLEAN CONSOLE_Init ( VOID  )

Definition at line 45 of file consup.c.

47 {
49  if (!AllocConsole())
50  return FALSE;
51 
55  return FALSE;
56  xScreen = csbi.dwSize.X;
57  yScreen = csbi.dwSize.Y;
58  return TRUE;
59 }
#define TRUE
Definition: types.h:120
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:48
SHORT xScreen
Definition: consup.c:39
HANDLE StdInput
Definition: consup.c:36
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:152
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:544
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 259 of file consup.c.

264 {
265  COORD coPos;
266  DWORD Written;
267 
268  for (coPos.Y = y; coPos.Y < y + row; coPos.Y++)
269  {
270  coPos.X = x;
271 
273  StdOutput,
275  col,
276  coPos,
277  &Written);
278  }
279 }
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:474
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
#define FOREGROUND_BLUE
Definition: wincon.h:39
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_NormalTextXY()

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

Definition at line 282 of file consup.c.

287 {
288  COORD coPos;
289  DWORD Written;
290 
291  for (coPos.Y = y; coPos.Y < y + row; coPos.Y++)
292  {
293  coPos.X = x;
294 
296  StdOutput,
298  col,
299  coPos,
300  &Written);
301  }
302 }
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:474
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
#define BACKGROUND_BLUE
Definition: wincon.h:43
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

Referenced by BootLoaderPage(), and DeviceSettingsPage().

◆ CONSOLE_PrintTextXY()

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

Definition at line 599 of file consup.c.

603 {
604  CHAR buffer[512];
605  va_list ap;
606  COORD coPos;
607  DWORD Written;
608 
609  va_start(ap, fmt);
610  vsprintf(buffer, fmt, ap);
611  va_end(ap);
612 
613  coPos.X = x;
614  coPos.Y = y;
615 
617  StdOutput,
618  buffer,
619  (ULONG)strlen(buffer),
620  coPos,
621  &Written);
622 }
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:356
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 626 of file consup.c.

631 {
632  CHAR buffer[512];
633  va_list ap;
634  COORD coPos;
635  SHORT Length;
636  DWORD Written;
637 
638  va_start(ap, fmt);
639  vsprintf(buffer, fmt, ap);
640  va_end(ap);
641 
642  coPos.X = x;
643  coPos.Y = y;
644 
646  if (Length > len - 1)
647  Length = len - 1;
648 
650  StdOutput,
651  buffer,
652  Length,
653  coPos,
654  &Written);
655 
656  coPos.X += Length;
657 
658  if (len > Length)
659  {
661  StdOutput,
662  ' ',
663  len - Length,
664  coPos,
665  &Written);
666  }
667 }
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:509
#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:356
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 210 of file consup.c.

213 {
215 
216  cci.dwSize = bInsert ? 10 : 99;
217  cci.bVisible = bVisible;
218 
220 }
HANDLE StdOutput
Definition: consup.c:37
BOOLEAN bVisible
Definition: blue.h:41
BOOL WINAPI SetConsoleCursorInfo(IN HANDLE hConsoleOutput, IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo)
Definition: console.c:567
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 223 of file consup.c.

226 {
227  COORD coPos;
228 
229  coPos.X = x;
230  coPos.Y = y;
232 }
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:590
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 568 of file consup.c.

572 {
573  COORD coPos;
574  DWORD Length;
575  DWORD Written;
576 
577  coPos.X = x;
578  coPos.Y = y;
579 
580  Length = (ULONG)strlen(Text);
581 
583  StdOutput,
585  Length,
586  coPos,
587  &Written);
588 
590  StdOutput,
591  Text,
592  Length,
593  coPos,
594  &Written);
595 }
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:474
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:356
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_BLUE
Definition: wincon.h:43
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define FOREGROUND_INTENSITY
Definition: wincon.h:42
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 344 of file consup.c.

349 {
350  COORD coPos;
351  SHORT Length;
352  DWORD Written;
353 
354  coPos.X = x;
355  coPos.Y = y;
356 
357  Length = (SHORT)wcslen(Text);
358  if (Length > len - 1)
359  Length = len - 1;
360 
362  StdOutput,
364  len,
365  coPos,
366  &Written);
367 
369  StdOutput,
370  Text,
371  (ULONG)Length,
372  coPos,
373  &Written);
374 
375  coPos.X += Length;
376  if (len > Length)
377  {
379  StdOutput,
380  ' ',
381  len - Length,
382  coPos,
383  &Written);
384  }
385 }
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:474
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:509
BOOL WINAPI WriteConsoleOutputCharacterW(HANDLE hConsoleOutput, IN LPCWSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:400
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 538 of file consup.c.

542 {
543  COORD coPos;
544  DWORD Length;
545  DWORD Written;
546 
547  coPos.X = x;
548  coPos.Y = y;
549 
550  Length = (ULONG)strlen(Text);
551 
553  StdOutput,
555  Length,
556  coPos,
557  &Written);
558 
560  StdOutput,
561  Text,
562  Length,
563  coPos,
564  &Written);
565 }
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:474
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:356
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
#define FOREGROUND_BLUE
Definition: wincon.h:39
ULONG Y
Definition: bl.h:1341
char * Text
Definition: combotst.c:136

Referenced by DrawFileSystemList().

◆ CONSOLE_SetStatusText()

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

Definition at line 481 of file consup.c.

484 {
485  va_list ap;
486 
487  va_start(ap, fmt);
489  va_end(ap);
490 }
VOID CONSOLE_SetStatusTextV(IN LPCSTR fmt, IN va_list args)
Definition: consup.c:472
#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 513 of file consup.c.

516 {
517  CHAR Buffer[128];
518  DWORD Length;
519  va_list ap;
520 
521  va_start(ap, fmt);
522  vsprintf(Buffer, fmt, ap);
523  va_end(ap);
524 
526 
527  if (Length + x <= 79)
528  {
530  }
531  else
532  {
534  }
535 }
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:459
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 472 of file consup.c.

475 {
477 }
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:419
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 459 of file consup.c.

463 {
464  va_list ap;
465 
466  va_start(ap, fmt);
468  va_end(ap);
469 }
VOID CONSOLE_SetStatusTextXV(IN SHORT x, IN LPCSTR fmt, IN va_list args)
Definition: consup.c:419
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 419 of file consup.c.

423 {
424  COORD coPos;
425  DWORD Written;
426  CHAR Buffer[128];
427 
428  vsprintf(Buffer, fmt, args);
429 
430  coPos.X = 0;
431  coPos.Y = yScreen - 1;
432 
434  StdOutput,
436  xScreen,
437  coPos,
438  &Written);
439 
441  StdOutput,
442  ' ',
443  xScreen,
444  coPos,
445  &Written);
446 
447  coPos.X = x;
448 
450  StdOutput,
451  Buffer,
452  (ULONG)strlen(Buffer),
453  coPos,
454  &Written);
455 }
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:474
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:509
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:356
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 670 of file consup.c.

675 {
676  COORD coPos;
677  DWORD Length;
678 
679  coPos.X = x;
680  coPos.Y = y;
681 
682  Length = (ULONG)strlen(Text);
683 
684  if (Flags & TEXT_TYPE_STATUS)
685  {
686  coPos.X = x;
687  coPos.Y = yScreen - 1;
688  }
689  else /* TEXT_TYPE_REGULAR (Default) */
690  {
691  coPos.X = x;
692  coPos.Y = y;
693  }
694 
695  if (Flags & TEXT_ALIGN_CENTER)
696  {
697  coPos.X = (xScreen - Length) /2;
698  }
699  else if(Flags & TEXT_ALIGN_RIGHT)
700  {
701  coPos.X = coPos.X - Length;
702 
704  {
705  coPos.X -= 1;
706  }
707  else if (Flags & TEXT_PADDING_MEDIUM)
708  {
709  coPos.X -= 2;
710  }
711  else if (Flags & TEXT_PADDING_BIG)
712  {
713  coPos.X -= 3;
714  }
715  }
716  else /* TEXT_ALIGN_LEFT (Default) */
717  {
719  {
720  coPos.X += 1;
721  }
722  else if (Flags & TEXT_PADDING_MEDIUM)
723  {
724  coPos.X += 2;
725  }
726  else if (Flags & TEXT_PADDING_BIG)
727  {
728  coPos.X += 3;
729  }
730  }
731 
732  if (Flags & TEXT_TYPE_STATUS)
733  {
734  CONSOLE_SetStatusTextX(coPos.X, Text);
735  }
736  else /* TEXT_TYPE_REGULAR (Default) */
737  {
739  {
740  CONSOLE_SetHighlightedTextXY(coPos.X, coPos.Y, Text);
741  }
742  else if (Flags & TEXT_STYLE_UNDERLINE)
743  {
744  CONSOLE_SetUnderlinedTextXY(coPos.X, coPos.Y, Text);
745  }
746  else /* TEXT_STYLE_NORMAL (Default) */
747  {
748  CONSOLE_SetTextXY(coPos.X, coPos.Y, Text);
749  }
750  }
751 }
SHORT xScreen
Definition: consup.c:39
VOID CONSOLE_SetTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:305
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:459
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:568
#define TEXT_PADDING_BIG
Definition: consup.h:51
VOID CONSOLE_SetUnderlinedTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
Definition: consup.c:388
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().

◆ CONSOLE_SetTextXY()

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

Definition at line 305 of file consup.c.

309 {
310  COORD coPos;
311  DWORD Written;
312 
313  coPos.X = x;
314  coPos.Y = y;
315 
317  StdOutput,
318  Text,
319  (ULONG)strlen(Text),
320  coPos,
321  &Written);
322 }
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:356
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(), and SelectFileSystemPage().

◆ CONSOLE_SetUnderlinedTextXY()

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

Definition at line 388 of file consup.c.

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