bug fix $t so it write out time instead for "current time is xxxxxxx" not it write the time. bug fix $h so it did jump back and erase the char that was there before.

svn path=/trunk/; revision=16584
This commit is contained in:
Magnus Olsen 2005-07-15 17:31:12 +00:00
parent 81517874a0
commit 199110e78f

View file

@ -105,6 +105,8 @@ VOID PrintPrompt(VOID)
case _T('H'):
ConOutChar (_T('\x08'));
ConOutChar (_T(' '));
ConOutChar (_T('\x08'));
break;
case _T('L'):
@ -132,9 +134,14 @@ VOID PrintPrompt(VOID)
break;
case _T('T'):
PrintTime ();
//PrintTime ();
{
TCHAR szTime[32];
GetTimeFormat(LOCALE_USER_DEFAULT, 0, NULL, NULL,szTime, sizeof(szTime));
ConOutPrintf("%s",szTime);
}
break;
case _T('V'):
switch (osvi.dwPlatformId)
{
@ -146,6 +153,7 @@ VOID PrintPrompt(VOID)
ConOutPrintf (_T("Windows 95"));
break;
case VER_PLATFORM_WIN32_NT:
ConOutPrintf (_T("Windows NT Version %lu.%lu"),
osvi.dwMajorVersion, osvi.dwMinorVersion);