Phil wrote:
However, to be specific, I would recommend "\r" (or \012) for linefeed. I'll put this in the specification.
Actually I think \f usually denotes \012 (linefeed or formfeed) and \r denotes \013 (carriage return).
If indeed this becomes the standard we (GNU Go) should change the distributed gtp.c and play_gtp.c.
But perhaps the standard actually should allow any one of LF, CR or CRLF as newline and it should be up to the client to recognize these alternatives. In other words a line is terminated by any match of the regular expression [\f\r]+ .
If this policy were adopted then \n\n is not different from \n.
Dan