ReactOS  0.4.14-dev-376-gaedba84
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 */
1182  CONSOLE_ConOutPrintf(">");
1183 
1184  ReadCommand(&State, szInputBuffer, 256);
1185 DPRINT1("%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 TRUE
Definition: types.h:120
char CHAR
Definition: xmlstorage.h:175
static BOOL ReadCommand(PCONSOLE_STATE State, LPSTR str, INT maxlen)
Definition: cmdcons.c:735
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:152
VOID __cdecl CONSOLE_ConOutPrintf(IN LPCSTR szFormat,...)
Definition: consup.c:159
VOID CONSOLE_ClearScreen(VOID)
Definition: consup.c:235
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
enum State_ State
Definition: pofuncs.h:54
static VOID DoCommand(PCONSOLE_STATE State, LPSTR line)
Definition: cmdcons.c:1082
#define DPRINT1
Definition: precomp.h:8
VOID CONSOLE_SetCursorXY(IN SHORT x, IN SHORT y)
Definition: consup.c:223
ULONG Y
Definition: bl.h:1341

Referenced by RunUSetup().