ReactOS 0.4.16-dev-257-g6aa11ac
cmdcons.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

VOID RecoveryConsole (VOID)
 

Function Documentation

◆ RecoveryConsole()

VOID RecoveryConsole ( VOID  )

Definition at line 1160 of file cmdcons.c.

1161{
1162 CHAR szInputBuffer[256];
1165
1167
1168 /* get screen size */
1169 State.maxx = csbi.dwSize.X;
1170 State.maxy = csbi.dwSize.Y;
1171 State.bInsert = TRUE;
1172 State.bExit = FALSE;
1173
1175 CONSOLE_SetCursorXY(0, 0);
1176
1177 CONSOLE_ConOutPrintf("ReactOS Recovery Console\n\nEnter HELP to get a list of commands.\n\n");
1178
1179 while (!State.bExit)
1180 {
1181 /* Prompt */
1183
1184 ReadCommand(&State, szInputBuffer, 256);
1185DPRINT1("%s\n", szInputBuffer);
1186
1187 DoCommand(&State, szInputBuffer);
1188
1189// Cmd = ParseCommand(NULL);
1190// if (!Cmd)
1191// continue;
1192
1193// ExecuteCommand(Cmd);
1194// FreeCommand(Cmd);
1195 }
1196}
#define DPRINT1
Definition: precomp.h:8
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:203
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:595
static BOOL ReadCommand(PCONSOLE_STATE State, LPSTR str, INT maxlen)
Definition: cmdcons.c:735
static VOID DoCommand(PCONSOLE_STATE State, LPSTR line)
Definition: cmdcons.c:1082
VOID __cdecl CONSOLE_ConOutPrintf(IN LPCSTR szFormat,...)
Definition: consup.c:163
VOID CONSOLE_SetCursorXY(IN SHORT x, IN SHORT y)
Definition: consup.c:227
VOID CONSOLE_ClearScreen(VOID)
Definition: consup.c:239
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
SHORT Y
Definition: blue.h:27
SHORT X
Definition: blue.h:26
#define STD_OUTPUT_HANDLE
Definition: winbase.h:294
char CHAR
Definition: xmlstorage.h:175

Referenced by RunUSetup().