mirror of
https://github.com/reactos/reactos.git
synced 2026-06-04 10:20:48 +08:00
[NETSH] Print proper prompt
This commit is contained in:
@@ -220,6 +220,23 @@ InterpretScript(
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
PrintPrompt(
|
||||
PCONTEXT_ENTRY pContext)
|
||||
{
|
||||
if (pContext == pRootContext)
|
||||
{
|
||||
ConPuts(StdOut, L"netsh");
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintPrompt(pContext->pParentContext);
|
||||
ConPuts(StdOut, L" ");
|
||||
ConPuts(StdOut, pContext->pszContextName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
InterpretInteractive(VOID)
|
||||
{
|
||||
@@ -236,12 +253,7 @@ InterpretInteractive(VOID)
|
||||
memset(args_vector, 0, sizeof(args_vector));
|
||||
|
||||
/* Shown just before the input where the user places commands */
|
||||
ConPuts(StdOut, L"netsh");
|
||||
if (pCurrentContext != pRootContext)
|
||||
{
|
||||
ConPuts(StdOut, L" ");
|
||||
ConPuts(StdOut, pCurrentContext->pszContextName);
|
||||
}
|
||||
PrintPrompt(pCurrentContext);
|
||||
ConPuts(StdOut, L">");
|
||||
|
||||
/* Get input from the user. */
|
||||
|
||||
Reference in New Issue
Block a user