IMHO,<br>GRASS_MESSAGE_FORMAT=gui<br>makes output from G_message and G_percent parsable (not only) for the GUI.<br><br>jachym<br><br><div><span class="gmail_quote">2007/2/26, Hamish &lt;<a href="mailto:hamish_nospam@yahoo.com">
hamish_nospam@yahoo.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Glynn:<br>[stderr is unbuffered, stdout is buffered]<br>
<br>Thanks for correcting me. This opens more G_message() options.<br><br><br>Martin Landa wrote:<br>&gt; OK, it would be nice to describe *fixed* rules for module verbosity<br>&gt; level, e.g. on the GRASS-wiki and use them when coding new module or
<br>&gt; patching the old one. It will prevent from inconsistency along GRASS<br>&gt; modules in the future.<br><br>I agree. But I&#39;d replace &quot;fixed rules&quot; with &quot;[strongly] recommended<br>guidelines&quot; and expand it to cover lots of consistency issues which the
<br>SUBMITTING files don&#39;t cover. IMO hard rules have a bad tendency to<br>incorrectly force a grey question into a black or white answer, and<br>shift a debate from practical solutions to rhetorical bickering.<br><br>
<br>&gt; I think it is better to use G_message() (or more advanced G_ fn) for<br>&gt; *all* module messages. fprintf (stdout, ) should be used for the<br>&gt; *output* not for the messages. It mixed two different things together
<br>&gt; which would be better to separate. I think that mixing messages and<br>&gt; module output would cause problems in the future. All message should<br>&gt; be controlled by GRASS_VERBOSE level or GRASS_MESSAGE_FORMAT.
<br><br>I agree. Although I&#39;m not sure what GRASS_MESSAGE_FORMAT does.<br><br><br>Hamish<br><br>_______________________________________________<br>grass-dev mailing list<br><a href="mailto:grass-dev@grass.itc.it">grass-dev@grass.itc.it
</a><br><a href="http://grass.itc.it/mailman/listinfo/grass-dev">http://grass.itc.it/mailman/listinfo/grass-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Jachym Cepicky<br>e-mail: jachym.cepicky gmail com<br>
URL: <a href="http://les-ejk.cz">http://les-ejk.cz</a><br>GPG: <a href="http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub">http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub</a>