From b5273b087ee3ee04e1b9fca0a6cf1952b472f9f2 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 4 Mar 2003 22:34:54 +0000
Subject: [PATCH] Now clears the screen before executing an external editor
 (assumes fullscreen). Solves problem with SyncEdit and Windows telnet.exe.

---
 src/sbbs3/writemsg.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/writemsg.cpp b/src/sbbs3/writemsg.cpp
index 74429d61a5..74f14ae47d 100644
--- a/src/sbbs3/writemsg.cpp
+++ b/src/sbbs3/writemsg.cpp
@@ -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);
-- 
GitLab