Skip to content
Snippets Groups Projects
Commit 7296b8d3 authored by rswindell's avatar rswindell
Browse files

When displaying menu files (using printfile()), enable CPM/EOF mode

(stops parsing/displaying upon Ctrl-Z) - this solves the SAUCE record
issue for sysops (e.g. using PabloDraw).
parent b5c520a9
No related branches found
No related tags found
No related merge requests found
......@@ -184,10 +184,7 @@ void sbbs_t::printtail(char *str, int lines, long mode)
}
/****************************************************************************/
/* Prints the menu number 'menunum' from the text directory. Checks for ^A */
/* ,ANSI sequences, pauses and aborts. Usually accessed by user inputing '?'*/
/* Called from every function that has an available menu. */
/* The code definitions are as follows: */
/* Displays a menu file (e.g. from the text/menu directory) */
/****************************************************************************/
void sbbs_t::menu(const char *code)
{
......@@ -214,7 +211,7 @@ void sbbs_t::menu(const char *code)
}
}
long mode = P_OPENCLOSE;
long mode = P_OPENCLOSE | P_CPM_EOF;
if(column == 0)
mode |= P_NOCRLF;
printfile(path, mode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment