Turned off wrap when possible on ICS servers.
authorEric Mullins <emwine@earthlink.net>
Sun, 11 Oct 2009 00:34:37 +0000 (18:34 -0600)
committerEric Mullins <emwine@earthlink.net>
Sun, 11 Oct 2009 00:34:37 +0000 (18:34 -0600)
Turning off line wrap prevents splitting lines up using the
continuation sequence "\\   ".  This is desirable when using
timeseal because timeseal's buffer is sometimes too small,
causing it to break lines itself.  These lines can't be joined.

backend.c

index 2965507..6f17d9b 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -2214,6 +2214,7 @@ read_from_ics(isr, closure, data, count, error)
                  sprintf(str,
                          "/set-quietly interface %s\n/set-quietly style 12\n",
                          programVersion);
                  sprintf(str,
                          "/set-quietly interface %s\n/set-quietly style 12\n",
                          programVersion);
+                 strcat(str, "/set-quietly wrap 0\n");
 
                } else if (ics_type == ICS_CHESSNET) {
                  sprintf(str, "/style 12\n");
 
                } else if (ics_type == ICS_CHESSNET) {
                  sprintf(str, "/style 12\n");
@@ -2224,10 +2225,11 @@ read_from_ics(isr, closure, data, count, error)
 #ifdef WIN32
                  strcat(str, "$iset nohighlight 1\n");
 #endif
 #ifdef WIN32
                  strcat(str, "$iset nohighlight 1\n");
 #endif
+                 strcat(str, "$iset nowrap 1\n");
                  strcat(str, "$iset lock 1\n$style 12\n");
                  strcat(str, "$iset lock 1\n$style 12\n");
-                 NotifyFrontendLogin();
                }
                SendToICS(str);
                }
                SendToICS(str);
+               NotifyFrontendLogin();
                intfSet = TRUE;
            }
 
                intfSet = TRUE;
            }