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

Now clears the screen before executing an external editor (assumes fullscreen).

Solves problem with SyncEdit and Windows telnet.exe.
parent e242bf9a
Branches
Tags
No related merge requests found
......@@ -304,9 +304,11 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum
,ex_mode,cfg.node_dir); }
else {
CLS;
rioctl(IOCM|PAUSE|ABORT);
external(cmdstr(cfg.xedit[useron.xedit-1]->rcmd,msgtmp,nulstr,NULL),ex_mode,cfg.node_dir);
rioctl(IOSM|PAUSE|ABORT); }
rioctl(IOSM|PAUSE|ABORT);
}
checkline();
if(!fexist(msgtmp) || !online
|| (linesquoted && qlen==flength(msgtmp) && qtime==fdate(msgtmp))) {
......@@ -801,9 +803,11 @@ void sbbs_t::editfile(char *str)
if(online==ON_LOCAL)
external(cmdstr(cfg.xedit[useron.xedit-1]->lcmd,str,nulstr,NULL),mode,cfg.node_dir);
else {
CLS;
rioctl(IOCM|PAUSE|ABORT);
external(cmdstr(cfg.xedit[useron.xedit-1]->rcmd,str,nulstr,NULL),mode,cfg.node_dir);
rioctl(IOSM|PAUSE|ABORT); }
rioctl(IOSM|PAUSE|ABORT);
}
return; }
if((buf=(char *)MALLOC(maxlines*MAX_LINE_LEN))==NULL) {
errormsg(WHERE,ERR_ALLOC,nulstr,maxlines*MAX_LINE_LEN);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment