X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xengineoutput.c;h=bb255fe4eaa5c8e2725b3f11ef0ecf7f52075f94;hb=d13479fa8f80542d1fef82b56c87c8f68573bfba;hp=f7f56385b4f6672ac6b3a603577314e755fd368d;hpb=a66247fa4d0cad3b73c322a7ce5d4e7266d9c27e;p=xboard.git diff --git a/xengineoutput.c b/xengineoutput.c index f7f5638..bb255fe 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -184,6 +184,10 @@ void InsertIntoMemo( int which, char * text, int where ) { 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, where, where, &t);