diff --git a/scp.c b/scp.c index ded01712..ebaced05 100644 --- a/scp.c +++ b/scp.c @@ -1333,7 +1333,9 @@ static const char simh_help1[] = "+SET NOLOG disables any currently active logging\n" "4Switches\n" " By default, log output is written at the end of the specified log file.\n" - " A new log file can created if the -N switch is used on the command line.\n" + " A new log file can created if the -N switch is used on the command line.\n\n" + " By default, log output is written in text mode. The log file can be\n" + " opened for binary mode writing if the -B switch is used on the command line.\n" #define HLP_SET_DEBUG "*Commands SET Debug" /***************** 80 character line width template *************************/ "3Debug\n" diff --git a/sim_console.c b/sim_console.c index 487c3dac..068ee78b 100644 --- a/sim_console.c +++ b/sim_console.c @@ -2227,7 +2227,8 @@ cptr = get_glyph_nc (cptr, gbuf, 0); /* get file name */ if (*cptr != 0) /* now eol? */ return SCPE_2MARG; sim_set_logoff (0, NULL); /* close cur log */ -r = sim_open_logfile (gbuf, FALSE, &sim_log, &sim_log_ref); /* open log */ +r = sim_open_logfile (gbuf, (sim_switches & SWMASK ('B')) == SWMASK ('B'), + &sim_log, &sim_log_ref); /* open log */ if (r != SCPE_OK) /* error? */ return r; if ((!sim_quiet) && (!(sim_switches & SWMASK ('Q'))))