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

Now clears rio_abortable flag during externals and restores after

(previously didn't matter, but now used in input_thread).
Disables Telnet binary receive mode after external
(solves problem of CR/LF parsing after upload or download).
parent 5789e5b1
No related branches found
No related tags found
No related merge requests found
...@@ -505,6 +505,10 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir) ...@@ -505,6 +505,10 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
ReleaseMutex(exec_mutex); ReleaseMutex(exec_mutex);
} }
/* Disable Ctrl-C checking */
bool rio_abortable_save=rio_abortable;
rio_abortable=false;
// Executing app, monitor // Executing app, monitor
retval=STILL_ACTIVE; retval=STILL_ACTIVE;
while(1) { while(1) {
...@@ -726,6 +730,13 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir) ...@@ -726,6 +730,13 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
curatr=0; // Can't guarantee current attributes curatr=0; // Can't guarantee current attributes
rio_abortable=rio_abortable_save; // Restore abortable state
/* Got back to Text/NVT mode */
sprintf(str,"%c%c%c",TELNET_IAC,TELNET_DONT,TELNET_BINARY);
putcom(str,3);
telnet_mode&=~TELNET_MODE_BIN_RX;
// lprintf("%s returned %d",realcmdline, retval); // lprintf("%s returned %d",realcmdline, retval);
return(retval); return(retval);
......
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