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
......@@ -505,6 +505,10 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
ReleaseMutex(exec_mutex);
}
/* Disable Ctrl-C checking */
bool rio_abortable_save=rio_abortable;
rio_abortable=false;
// Executing app, monitor
retval=STILL_ACTIVE;
while(1) {
......@@ -726,6 +730,13 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
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);
return(retval);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment