CONSOLE: Add binary mode option when opening the LOG file.
This commit is contained in:
parent
a02b87625c
commit
ddcc280a17
2 changed files with 5 additions and 2 deletions
4
scp.c
4
scp.c
|
@ -1333,7 +1333,9 @@ static const char simh_help1[] =
|
||||||
"+SET NOLOG disables any currently active logging\n"
|
"+SET NOLOG disables any currently active logging\n"
|
||||||
"4Switches\n"
|
"4Switches\n"
|
||||||
" By default, log output is written at the end of the specified log file.\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"
|
#define HLP_SET_DEBUG "*Commands SET Debug"
|
||||||
/***************** 80 character line width template *************************/
|
/***************** 80 character line width template *************************/
|
||||||
"3Debug\n"
|
"3Debug\n"
|
||||||
|
|
|
@ -2227,7 +2227,8 @@ cptr = get_glyph_nc (cptr, gbuf, 0); /* get file name */
|
||||||
if (*cptr != 0) /* now eol? */
|
if (*cptr != 0) /* now eol? */
|
||||||
return SCPE_2MARG;
|
return SCPE_2MARG;
|
||||||
sim_set_logoff (0, NULL); /* close cur log */
|
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? */
|
if (r != SCPE_OK) /* error? */
|
||||||
return r;
|
return r;
|
||||||
if ((!sim_quiet) && (!(sim_switches & SWMASK ('Q'))))
|
if ((!sim_quiet) && (!(sim_switches & SWMASK ('Q'))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue