From 593a5950d1db6b06473af93e052dc60c9ebfa025 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 22 Oct 2014 13:39:33 -0700 Subject: [PATCH] SCP: Cleaned up the Remote Console Help output --- sim_console.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/sim_console.c b/sim_console.c index 8916f665..6ecd0cc0 100644 --- a/sim_console.c +++ b/sim_console.c @@ -514,15 +514,22 @@ static t_stat x_help_cmd (int32 flag, char *cptr) { CTAB *cmdp, *cmdph; -if (*cptr) - return help_cmd (flag, cptr); -sim_printf ("Remote Console Commands:\r\n"); +if (*cptr) { + int32 saved_switches = sim_switches; + t_stat r; + + sim_switches |= SWMASK ('F'); + r = help_cmd (flag, cptr); + sim_switches = saved_switches; + return r; + } +sim_printf ("Help is available for the following Remote Console commands:\r\n"); for (cmdp=allowed_remote_cmds; cmdp->name != NULL; ++cmdp) { cmdph = find_cmd (cmdp->name); - if (cmdph && cmdph->help) { - sim_printf ("%s\r\n", cmdph->help); - } + if (cmdph && cmdph->help) + sim_printf (" %s\r\n", cmdp->name); } +sim_printf ("Enter \"HELP cmd\" for detailed help on a command\r\n"); return SCPE_OK; }