mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:45:56 +00:00
[CMD]: Addendum to r76000, with ConSetTitle.
svn path=/trunk/; revision=76001
This commit is contained in:
parent
c1596e7b3a
commit
9254157290
4 changed files with 15 additions and 6 deletions
|
@ -378,7 +378,7 @@ Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
|
|||
GetConsoleTitle(szWindowTitle, ARRAYSIZE(szWindowTitle));
|
||||
bTitleSet = FALSE;
|
||||
_stprintf(szNewTitle, _T("%s - %s%s"), szWindowTitle, First, Rest);
|
||||
SetConsoleTitle(szNewTitle);
|
||||
ConSetTitle(szNewTitle);
|
||||
|
||||
/* check if this is a .BAT or .CMD file */
|
||||
dot = _tcsrchr (szFullName, _T('.'));
|
||||
|
@ -479,7 +479,7 @@ Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
|
|||
|
||||
/* Restore the original console title */
|
||||
if (!bTitleSet)
|
||||
SetConsoleTitle(szWindowTitle);
|
||||
ConSetTitle(szWindowTitle);
|
||||
|
||||
return dwExitCode;
|
||||
}
|
||||
|
|
|
@ -178,6 +178,9 @@ VOID ConOutResPrintf (UINT resID, ...);
|
|||
VOID ConErrResPrintf (UINT resID, ...);
|
||||
VOID ConOutResPaging(BOOL NewPage, UINT resID);
|
||||
|
||||
|
||||
BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle);
|
||||
|
||||
#ifdef INCLUDE_CMD_BEEP
|
||||
VOID ConRingBell(HANDLE hOutput);
|
||||
#endif
|
||||
|
|
|
@ -568,6 +568,12 @@ VOID GetScreenSize(PSHORT maxx, PSHORT maxy)
|
|||
|
||||
|
||||
|
||||
BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle)
|
||||
{
|
||||
/* Now really set the console title */
|
||||
return SetConsoleTitle(lpConsoleTitle);
|
||||
}
|
||||
|
||||
#ifdef INCLUDE_CMD_BEEP
|
||||
VOID ConRingBell(HANDLE hOutput)
|
||||
{
|
||||
|
|
|
@ -29,9 +29,9 @@ INT cmd_title (LPTSTR param)
|
|||
}
|
||||
|
||||
bTitleSet = TRUE;
|
||||
return SetConsoleTitle (param);
|
||||
return ConSetTitle(param);
|
||||
}
|
||||
|
||||
#endif /* def INCLUDE_CMD_TITLE */
|
||||
#endif /* INCLUDE_CMD_TITLE */
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue