diff --git a/scp.c b/scp.c index c354c05a..1445660c 100644 --- a/scp.c +++ b/scp.c @@ -630,7 +630,9 @@ static CTAB cmd_table[] = { "set console NOTELNET disable console telnet\n" "set console LOG enable console logging\n" "set console NOLOG disable console logging\n" - "set console DEBUG enable console debugging\n" + "set console DEBUG=dbg_file\n" + " enable console debugging to the\n" + " specified destination {LOG,STDOUT,DEBUG or filename)\n" "set console NODEBUG disable console debugging\n" "set console {-A}{-I} HALT=\n" " set a console output string which\n" @@ -643,6 +645,12 @@ static CTAB cmd_table[] = { "set console DELAY= specifies a number of instructions to delay\n" " between when a console halt condition\n" " is satisfied and the halt occurs\n" + "set log log_file specify the log destination\n" + " (STDOUT,DEBUG or filename)\n" + "set nolog disables any currently active logging\n" + "set debug debug_file specify the debug destination\n" + " (STDOUT,LOG or filename)\n" + "set nodebug disables any currently active debug output\n" "set break set breakpoints\n" "set nobreak clear breakpoints\n" "set throttle {x{M|K|%}}|{x/t}\n" diff --git a/sim_console.c b/sim_console.c index efbbe858..5f127098 100644 --- a/sim_console.c +++ b/sim_console.c @@ -279,7 +279,8 @@ while (*cptr != 0) { /* do all mods */ if (r != SCPE_OK) return r; } - else return SCPE_NOPARAM; + else + return SCPE_NOPARAM; } return SCPE_OK; } @@ -498,7 +499,7 @@ while (*cptr != 0) { /* do all mods */ } else if (ctptr = find_ctab (set_con_telnet_tab, gbuf)) { /* match? */ - r = ctptr->action (ctptr->arg, cvptr); /* do the rest */ + r = ctptr->action (ctptr->arg, cvptr); /* do the rest */ if (r != SCPE_OK) return r; } @@ -1421,8 +1422,6 @@ int c = -1; DWORD nkbevents, nkbevent; INPUT_RECORD rec; -\ - if ((std_input == NULL) || /* No keyboard for */ (std_input == INVALID_HANDLE_VALUE)) /* background processes */ return SCPE_OK;