cmd.exe: Additional PROMPT options.

This commit is contained in:
Jason Edmeades 2007-03-04 22:33:51 +00:00 committed by Alexandre Julliard
parent 0efa91de15
commit 00ba810dbf

View File

@ -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) {
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) {
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';