mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue