Commit 00ba810d authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

cmd.exe: Additional PROMPT options.

parent 0efa91de
...@@ -878,9 +878,15 @@ void WCMD_show_prompt (void) { ...@@ -878,9 +878,15 @@ void WCMD_show_prompt (void) {
case '$': case '$':
*q++ = '$'; *q++ = '$';
break; break;
case 'A':
*q++ = '&';
break;
case 'B': case 'B':
*q++ = '|'; *q++ = '|';
break; break;
case 'C':
*q++ = '(';
break;
case 'D': case 'D':
GetDateFormat (LOCALE_USER_DEFAULT, DATE_SHORTDATE, NULL, NULL, q, MAX_PATH); GetDateFormat (LOCALE_USER_DEFAULT, DATE_SHORTDATE, NULL, NULL, q, MAX_PATH);
while (*q) q++; while (*q) q++;
...@@ -888,9 +894,15 @@ void WCMD_show_prompt (void) { ...@@ -888,9 +894,15 @@ void WCMD_show_prompt (void) {
case 'E': case 'E':
*q++ = '\E'; *q++ = '\E';
break; break;
case 'F':
*q++ = ')';
break;
case 'G': case 'G':
*q++ = '>'; *q++ = '>';
break; break;
case 'H':
*q++ = '\b';
break;
case 'L': case 'L':
*q++ = '<'; *q++ = '<';
break; break;
...@@ -910,13 +922,16 @@ void WCMD_show_prompt (void) { ...@@ -910,13 +922,16 @@ void WCMD_show_prompt (void) {
case 'Q': case 'Q':
*q++ = '='; *q++ = '=';
break; break;
case 'S':
*q++ = ' ';
break;
case 'T': case 'T':
GetTimeFormat (LOCALE_USER_DEFAULT, 0, NULL, NULL, q, MAX_PATH); GetTimeFormat (LOCALE_USER_DEFAULT, 0, NULL, NULL, q, MAX_PATH);
while (*q) q++; while (*q) q++;
break; break;
case 'V': case 'V':
lstrcat (q, version_string); lstrcat (q, version_string);
while (*q) q++; while (*q) q++;
break; break;
case '_': case '_':
*q++ = '\n'; *q++ = '\n';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment