-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ChangeLog: * programs/wcmd/wcmdmain.c - Interpret the $A, $C, $F, and $S escape codes - Default to $P$G, like in Windows - -Ryan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE9xKjLLGMzRzbJfbQRAvyyAJ4+yeuy4urZPGzuvKY169hFy77odgCfYXOg fCCsuzkHqBycoJwtEpft4Ic= =EXEz -----END PGP SIGNATURE-----
Index: wcmdmain.c =================================================================== RCS file: /home/wine/wine/programs/wcmd/wcmdmain.c,v retrieving revision 1.17 diff -u -r1.17 wcmdmain.c --- wcmdmain.c 9 Oct 2002 20:38:36 -0000 1.17 +++ wcmdmain.c 3 Nov 2002 04:39:25 -0000 @@ -427,7 +427,7 @@ status = GetEnvironmentVariable ("PROMPT", prompt_string, sizeof(prompt_string)); if ((status == 0) || (status > sizeof(prompt_string))) { - lstrcpy (prompt_string, "$N$G"); + lstrcpy (prompt_string, "$P$G"); } p = prompt_string; q = out_string; @@ -443,9 +443,15 @@ case '$': *q++ = '$'; break; + case 'A': + *q++ = '&'; + break; case 'B': *q++ = '|'; break; + case 'C': + *q++ = '('; + break; case 'D': GetDateFormat (LOCALE_USER_DEFAULT, DATE_SHORTDATE, NULL, NULL, q, MAX_PATH); while (*q) q++; @@ -453,6 +459,9 @@ case 'E': *q++ = '\E'; break; + case 'F': + *q++ = ')'; + break; case 'G': *q++ = '>'; break; @@ -474,6 +483,9 @@ break; case 'Q': *q++ = '='; + break; + case 'S': + *q++ = ' '; break; case 'T': GetTimeFormat (LOCALE_USER_DEFAULT, 0, NULL, NULL, q, MAX_PATH);