From 199110e78f8aaf13c9e59649dc3987eb301928e1 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 15 Jul 2005 17:31:12 +0000 Subject: [PATCH] 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 --- reactos/subsys/system/cmd/prompt.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/cmd/prompt.c b/reactos/subsys/system/cmd/prompt.c index b4dc7bde16d..6477c2071b3 100644 --- a/reactos/subsys/system/cmd/prompt.c +++ b/reactos/subsys/system/cmd/prompt.c @@ -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);