Go to the source code of this file.
◆ FOREGROUND_WHITE
◆ cmd_prompt()
Definition at line 260 of file prompt.c.
261{
263
265 {
267#ifdef FEATURE_DIRECTORY_STACK
269#endif
271 return 0;
272 }
273
274
275
276
277
278
279
282 {
283 retval = 1;
284 }
285
287 {
288 if (retval != 0)
290 }
291 else
292 {
294 }
295
296 return retval;
297}
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
#define STRING_PROMPT_HELP2
#define STRING_PROMPT_HELP1
#define STRING_PROMPT_HELP3
#define SetEnvironmentVariable
◆ HasInfoLine()
Definition at line 72 of file prompt.c.
73{
76
78 {
79 pr = szPrompt;
80 while (*pr)
81 {
83 continue;
85 continue;
86
88 }
89 }
90
92}
#define GetEnvironmentVariable
Referenced by Initialize(), and PrintPrompt().
◆ InitPrompt()
Definition at line 57 of file prompt.c.
58{
60
61
62
63
64
67}
static TCHAR DefaultPrompt[]
Referenced by Initialize().
◆ PrintInfoLine()
Definition at line 97 of file prompt.c.
98{
99#define FOREGROUND_WHITE (FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY)
100
105
108
109
111 return;
112
114 if (!pszInfoLine || iInfoLineLen == 0)
115 return;
116
117
122 coPos, &dwWritten);
125 coPos, &dwWritten);
126
128 coPos, &dwWritten);
129}
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
#define STRING_CMD_INFOLINE
#define STD_OUTPUT_HANDLE
#define WriteConsoleOutputCharacter
#define FillConsoleOutputCharacter
Referenced by PrintPrompt().
◆ PrintPrompt()
Definition at line 134 of file prompt.c.
135{
139
141 Prompt = szPrompt;
142 else
144
145
146
147
148
151
152
153 for (pr = Prompt; *pr; ++pr)
154 {
156 {
158 }
159 else
160 {
161 ++pr;
162 if (!*pr) break;
164 {
167 break;
168
171 break;
172
175 break;
176
179 break;
180
183 break;
184
187 break;
188
191 break;
192
195 break;
196
199 break;
200
203 break;
204
206 {
209 break;
210 }
211
213 {
216 break;
217 }
218
221 break;
222
225 break;
226
229 break;
230
233 break;
234
237 break;
238
241 break;
242
243#ifdef FEATURE_DIRECTORY_STACK
245 {
249 break;
250 }
251#endif
252 }
253 }
254 }
255}
LPTSTR GetTimeString(VOID)
INT GetDirectoryStackDepth(VOID)
LPTSTR GetDateString(VOID)
#define ConOutPrintf(szStr,...)
#define ConOutPuts(szStr)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static void PrintOSVersion(void)
#define GetCurrentDirectory
Referenced by Batch(), ExecuteCommandWithEcho(), ReadCommand(), and ReadLine().
◆ DefaultPrompt