X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=xengineoutput.c;h=70235ab05eb14ae70bf1c8cee1b6b11e7d328c7c;hp=2df13d355c1e57fc3e144efbbee1e5cc9dd64398;hb=c85ef27161d814e3da2f4a3249c33e7840e91984;hpb=c6ef46acef2fa2f196abd4e08519ac7058ded35b diff --git a/xengineoutput.c b/xengineoutput.c index 2df13d3..70235ab 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -230,6 +230,10 @@ static void InsertIntoMemo( int which, char * text ) { Arg arg; XawTextBlock t; Widget edit; + /* the backend adds \r\n, which is needed for winboard, + * for xboard we delete them again over here */ + if(t.ptr = strchr(text, '\r')) *t.ptr = ' '; + t.ptr = text; t.firstPos = 0; t.length = strlen(text); t.format = XawFmt8Bit; edit = XtNameToWidget(engineOutputShell, which ? "*form2.text" : "*form.text"); XawTextReplace(edit, 0, 0, &t);