mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
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:
parent
81517874a0
commit
199110e78f
1 changed files with 10 additions and 2 deletions
|
@ -104,6 +104,8 @@ VOID PrintPrompt(VOID)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case _T('H'):
|
case _T('H'):
|
||||||
|
ConOutChar (_T('\x08'));
|
||||||
|
ConOutChar (_T(' '));
|
||||||
ConOutChar (_T('\x08'));
|
ConOutChar (_T('\x08'));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -132,7 +134,12 @@ VOID PrintPrompt(VOID)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case _T('T'):
|
case _T('T'):
|
||||||
PrintTime ();
|
//PrintTime ();
|
||||||
|
{
|
||||||
|
TCHAR szTime[32];
|
||||||
|
GetTimeFormat(LOCALE_USER_DEFAULT, 0, NULL, NULL,szTime, sizeof(szTime));
|
||||||
|
ConOutPrintf("%s",szTime);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case _T('V'):
|
case _T('V'):
|
||||||
|
@ -146,6 +153,7 @@ VOID PrintPrompt(VOID)
|
||||||
ConOutPrintf (_T("Windows 95"));
|
ConOutPrintf (_T("Windows 95"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
case VER_PLATFORM_WIN32_NT:
|
case VER_PLATFORM_WIN32_NT:
|
||||||
ConOutPrintf (_T("Windows NT Version %lu.%lu"),
|
ConOutPrintf (_T("Windows NT Version %lu.%lu"),
|
||||||
osvi.dwMajorVersion, osvi.dwMinorVersion);
|
osvi.dwMajorVersion, osvi.dwMinorVersion);
|
||||||
|
|
Loading…
Reference in a new issue