From 7296b8d3acce01d5a4929c8eb0f4d7fc8a047349 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 1 Oct 2018 01:56:31 +0000 Subject: [PATCH] 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). --- src/sbbs3/prntfile.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/sbbs3/prntfile.cpp b/src/sbbs3/prntfile.cpp index 4c0df4e2b8..214323fc54 100644 --- a/src/sbbs3/prntfile.cpp +++ b/src/sbbs3/prntfile.cpp @@ -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); -- GitLab